Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼0.72ms] Passed 4 tests
A check of server-side resources used by Taro Ad Fields
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.99 ▼0.71 |
Dashboard /wp-admin | 3.45 ▲0.15 | 48.51 ▲1.57 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 45.66 ▼0.03 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 98.89 ▼3.70 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.11 ▲4.13 |
Add New /wp-admin/post-new.php?post_type=ad-content | 3.50 | 47.98 |
Ad Fields /wp-admin/edit.php?post_type=ad-content | 3.42 | 37.90 |
Positions /wp-admin/edit-tags.php?taxonomy=ad-position&post_type=ad-content | 3.37 | 33.82 |
Server storage [IO: ▲11.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 387 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_taf-widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Taro Ad Fields
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 13.15 ▼1.65 | 4.46 ▲2.65 | 42.52 ▼1.61 |
Dashboard /wp-admin | 2,244 ▲62 | 5.84 ▲0.76 | 101.27 ▼9.56 | 39.82 ▲0.10 |
Posts /wp-admin/edit.php | 2,129 ▲43 | 2.05 ▲0.07 | 34.94 ▼4.07 | 32.33 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,564 ▲22 | 23.51 ▲5.27 | 585.81 ▼53.38 | 47.21 ▼8.74 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.27 ▲0.03 | 99.45 ▼2.05 | 44.35 ▼0.89 |
Add New /wp-admin/post-new.php?post_type=ad-content | 2,565 | 9.32 | 237.55 | 91.76 |
Ad Fields /wp-admin/edit.php?post_type=ad-content | 1,109 | 1.93 | 31.63 | 31.94 |
Positions /wp-admin/edit-tags.php?taxonomy=ad-position&post_type=ad-content | 1,291 | 2.28 | 30.18 | 31.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_taf-widget
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taro-ad-fields/includes/iframe.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taro-ad-fields/includes/post_type.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taro-ad-fields/includes/ouput.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taro-ad-fields/includes/meta-box.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/taro-ad-fields/taro-ad-fields.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/taro-ad-fields/includes/TafWidget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: advertisement
taro-ad-fields/taro-ad-fields.php 92% from 13 tests
"Taro Ad Fields" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin235,003 lines of code in 380 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 361 | 24,103 | 16,678 | 233,851 |
PHP | 14 | 113 | 340 | 849 |
PO File | 1 | 47 | 47 | 148 |
Markdown | 1 | 34 | 0 | 82 |
Sass | 1 | 9 | 1 | 71 |
CSS | 1 | 1 | 1 | 1 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 31 | |
▷ Named functions | 10 | 32.26% |
▷ Anonymous functions | 21 | 67.74% |
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
No PNG files were detected