Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.59ms] Passed 4 tests
This is a short check of server-side resources used by Newsmax InStream Ads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 46.38 ▼1.77 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.60 ▼6.31 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.19 ▼4.46 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.24 ▼5.82 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.72 ▼0.43 |
Newsmax Instream Ads /wp-admin/options-general.php?page=newsmax-plugin-menu | 3.21 | 33.33 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Newsmax InStream Ads
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.37 ▲0.01 | 1.87 ▲0.00 | 43.57 ▼2.19 |
Dashboard /wp-admin | 2,199 ▲25 | 5.56 ▼0.01 | 89.74 ▼16.50 | 42.56 ▼1.94 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.01 | 37.25 ▼1.39 | 36.05 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 18.39 ▼4.56 | 653.07 ▼26.91 | 73.30 ▲19.24 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▲0.02 | 96.80 ▼2.43 | 43.87 ▼3.73 |
Newsmax Instream Ads /wp-admin/options-general.php?page=newsmax-plugin-menu | 845 | 2.00 | 24.15 | 38.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/newsmax-article-widget/newsmax-in-article-widget-options-template.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsmax-article-widget/newsmax-in-article-widget.php:75
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Activation screen in WP Admin.), #2 (Settings screenshot, to configure the widget.), #3 (How it would be displayed on your site.)
newsmax-article-widget/newsmax-in-article-widget.php 92% from 13 tests
The entry point to "Newsmax InStream Ads" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("newsmax-article-widget.php" instead of "newsmax-in-article-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected170 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 28 | 11 | 170 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.25MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 62.29KB | 23.04KB | ▼ 63.00% |
logo.png | 6.32KB | 3.00KB | ▼ 52.45% |
screenshot-1.png | 98.15KB | 46.07KB | ▼ 53.07% |
screenshot-3.png | 84.22KB | 40.69KB | ▼ 51.69% |