Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲1.03MB] [CPU: ▲2.25ms] Passed 4 tests
This is a short check of server-side resources used by Wp-Insert
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.09 | 48.19 ▲8.59 |
Dashboard /wp-admin | 4.36 ▲1.06 | 63.60 ▲11.69 |
Posts /wp-admin/edit.php | 4.41 ▲1.06 | 59.69 ▲6.66 |
Add New Post /wp-admin/post-new.php | 6.90 ▲1.01 | 89.54 ▼17.95 |
Media Library /wp-admin/upload.php | 4.22 ▲1.00 | 54.70 ▲14.25 |
Server storage [IO: ▲12.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 417 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wp_insert_legalpages |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
wp_insert_version |
widget_wp_insert_ad_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wp-Insert
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.24 ▼1.17 | 1.72 ▲0.04 | 49.23 ▲9.64 |
Dashboard /wp-admin | 2,208 ▲17 | 5.90 ▲0.02 | 111.00 ▲9.46 | 88.79 ▲44.15 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.02 ▼0.02 | 36.68 ▼4.68 | 30.83 ▼5.79 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,835 | 28.35 ▲4.98 | 966.20 ▲276.30 | 42.98 ▼10.72 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.22 ▲0.11 | 102.56 ▼21.36 | 83.12 ▲34.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 9 options
- widget_wp_insert_ad_widget
- widget_recent-comments
- wp_insert_legalpages
- can_compress_scripts
- widget_theysaidso_widget
- wp_insert_version
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insert/includes/modules/general/videointelligence/gdpr.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insert/includes/modules/core/adstxt/adsense.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insert/includes/modules/general/shortcode/module.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insert/includes/modules/core/gutenberg/module.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insert/includes/modules/general/legalpages/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insert/includes/modules/general/google/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insert/includes/modules/general/inpost/module.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insert/includes/modules/core/units/geo-targeting.php:290
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insert/includes/modules/core/abtesting/module.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-insert/includes/modules/core/misc/module.php:3
- > 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 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: Invalid version format
- Screenshots: Add descriptions for screenshots #10, #11, #12, #13, #14 in wp-insert/assets to your readme.txt
wp-insert/wp-insert.php Passed 13 tests
The entry point to "Wp-Insert" version 2.5.1 is a PHP file that has certain tags in its header comment area
84 characters long description:
WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin274,609 lines of code in 392 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 367 | 332 | 290 | 254,838 |
JavaScript | 17 | 3,395 | 2,758 | 17,817 |
CSS | 5 | 342 | 25 | 1,926 |
Markdown | 3 | 11 | 0 | 28 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 350)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 190.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 483.00 |
Average method complexity | 21.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 350.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 17 | 60.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 39.29% |
Functions | 165 | |
▷ Named functions | 164 | 99.39% |
▷ Anonymous functions | 1 | 0.61% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/modules/core/controls/images/jquery-te.png | 2.54KB | 1.71KB | ▼ 32.81% |
includes/modules/general/videointelligence/images/privacy.png | 0.89KB | 0.89KB | 0.44% |
includes/assets/images/vi-logo-small.png | 2.56KB | 0.96KB | ▼ 62.63% |
includes/assets/images/vi-big-logo.png | 4.20KB | 2.73KB | ▼ 35.10% |
includes/assets/images/vi-logo-large.png | 7.66KB | 3.12KB | ▼ 59.29% |