Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▲534.82ms] 50% from 4 tests
Server-side resources used by Adnow Native Widget
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 622.68ms on /wp-admin/admin.php?page=adnow-widget)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 534.82ms on /wp-admin/admin.php?page=adnow-widget)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 616.75 ▲575.00 |
Dashboard /wp-admin | 3.57 ▲0.23 | 594.36 ▲528.92 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 616.37 ▲564.88 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 628.16 ▲514.71 |
Media Library /wp-admin/upload.php | 3.49 ▲0.27 | 565.25 ▲530.78 |
Edit place /wp-admin/admin.php?page=edit_place | 3.40 | 563.40 |
Adnow Plugin /wp-admin/admin.php?page=adnow-widget | 3.40 | 622.68 |
Server storage [IO: ▲1.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Adnow Native Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 13.94 ▼0.52 | 8.77 ▲6.94 | 37.78 ▼7.24 |
Dashboard /wp-admin | 2,243 ▲52 | 4.86 ▼1.03 | 102.25 ▼1.86 | 41.07 ▼3.28 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 1.99 ▼0.06 | 39.35 ▼1.15 | 37.51 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,542 ▲12 | 21.50 ▲3.40 | 654.74 ▲9.14 | 58.85 ▼3.80 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.21 ▼0.04 | 101.14 ▼10.96 | 45.27 ▲1.22 |
Edit place /wp-admin/admin.php?page=edit_place | 1,506 | 2.24 | 27.97 | 31.54 |
Adnow Plugin /wp-admin/admin.php?page=adnow-widget | 820 | 2.03 | 23.64 | 24.02 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/native-ads-adnow/admin/partials/adnow-widget-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/native-ads-adnow/admin/partials/class-adnow-widget-area.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: monetization, ad network, native ads, advertising
native-ads-adnow/adnow-widget.php 85% from 13 tests
The main PHP file in "Adnow Native Widget" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("native-ads-adnow.php" instead of "adnow-widget.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,679 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 123 | 2 | 853 |
PHP | 18 | 222 | 861 | 819 |
JavaScript | 2 | 1 | 13 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 49 | 75.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 24.62% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/plus.png | 1.11KB | 0.17KB | ▼ 84.34% |
admin/images/view-2.png | 18.36KB | 0.72KB | ▼ 96.10% |
public/images/success.png | 1.75KB | 0.95KB | ▼ 45.53% |
admin/images/error.png | 2.06KB | 1.03KB | ▼ 50.02% |
public/images/error.png | 2.06KB | 1.03KB | ▼ 50.02% |