Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼5.85ms] Passed 4 tests
This is a short check of server-side resources used by MAIRDUMONT NETLETIX Ads
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 37.41 ▼6.42 |
Dashboard /wp-admin | 3.53 ▲0.22 | 51.16 ▼3.42 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 50.44 ▼0.83 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 86.87 ▼12.74 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 38.53 ▲2.37 |
MD-NX Ads /wp-admin/options-general.php?page=nx-ads | 3.46 | 40.74 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_nx_ad_widget |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
nx_ads |
Browser metrics Passed 4 tests
Checking browser requirements for MAIRDUMONT NETLETIX Ads
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 14.41 ▲0.23 | 2.10 ▲0.21 | 42.70 ▼1.11 |
Dashboard /wp-admin | 2,199 ▲19 | 5.53 ▼0.20 | 88.59 ▼6.50 | 37.19 ▼2.73 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.00 ▼0.04 | 35.48 ▼1.40 | 34.07 ▼2.74 |
Add New Post /wp-admin/post-new.php | 6,244 ▲4,696 | 18.82 ▼4.56 | 891.63 ▲212.92 | 54.72 ▼8.29 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.26 ▲0.10 | 97.41 ▼6.03 | 43.63 ▼3.22 |
MD-NX Ads /wp-admin/options-general.php?page=nx-ads | 2,072 | 3.78 | 79.94 | 39.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_nx_ad_widget
- theysaidso_admin_options
- db_upgraded
- nx_ads
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: name in wp-content/plugins/nx-ads/admin/partials/row-container.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/nx-ads/admin/partials/row-zone.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/nx-ads/admin/partials/nx-ads-admin-display.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nx-ads/admin/class-nx-ads-admin.php:664
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/nx-ads/admin/partials/row-container.php:9
- > PHP Notice
Undefined variable: name in wp-content/plugins/nx-ads/admin/partials/row-container.php on line 2
- > PHP Notice
Undefined variable: name in wp-content/plugins/nx-ads/admin/partials/row-container.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/nx-ads/admin/partials/row-inread.php:4
- > PHP Notice
Undefined variable: name in wp-content/plugins/nx-ads/admin/partials/row-container.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/nx-ads/admin/partials/nx-ads-admin-widget.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: advertising, banner-ads, mairdumont, netzathleten, nxlib...
nx-ads/nx-ads.php 92% from 13 tests
"MAIRDUMONT NETLETIX Ads" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 207 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,400 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 290 | 78 | 1,314 |
JavaScript | 3 | 111 | 7 | 423 |
CSS | 2 | 93 | 0 | 369 |
PO File | 1 | 75 | 78 | 294 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 8 | 11.43% |
▷ Public methods | 52 | 74.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 25.71% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/js/nx-ads.png | 2.41KB | 0.89KB | ▼ 63.02% |
admin/assets/logo-mdnx.png | 5.27KB | 2.72KB | ▼ 48.40% |