Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/content-upgrades/content-upgrades.php+146
Undefined variable: wp_error
Server metrics [RAM: ▲0.17MB] [CPU: ▲5.34ms] Passed 4 tests
An overview of server-side resources used by Content Upgrades
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 44.37 ▲7.27 |
Dashboard /wp-admin | 3.48 ▲0.18 | 51.59 ▲2.88 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 51.74 ▲3.30 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 104.98 ▲10.05 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 42.83 ▲7.91 |
Fancy Boxes /wp-admin/edit.php?post_type=content-upgrades&page=fancyboxes | 3.37 | 33.23 |
Statistics /wp-admin/edit.php?post_type=content-upgrades&page=coupg_stats_free_notice | 3.37 | 34.49 |
All Upgrades /wp-admin/edit.php?post_type=content-upgrades | 3.49 | 42.93 |
New Upgrade /wp-admin/edit.php?post_type=content-upgrades&page=coupg_free_notice | 3.37 | 31.11 |
Settings /wp-admin/edit.php?post_type=content-upgrades&page=coupg_settings | 3.37 | 33.93 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
coupg_default_upgrade |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Upgrades
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.15 ▼1.60 | 1.61 ▼0.21 | 43.85 ▼6.90 |
Dashboard /wp-admin | 2,229 ▲44 | 4.87 ▼0.97 | 105.84 ▼3.21 | 81.83 ▲39.56 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 1.99 ▼0.02 | 37.76 ▼1.45 | 35.54 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6,493 ▲4,950 | 23.40 ▲4.94 | 965.92 ▲367.00 | 61.01 ▲0.96 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.21 ▲0.03 | 112.01 ▲15.80 | 73.85 ▲31.33 |
Fancy Boxes /wp-admin/edit.php?post_type=content-upgrades&page=fancyboxes | 871 | 2.14 | 25.10 | 25.89 |
Statistics /wp-admin/edit.php?post_type=content-upgrades&page=coupg_stats_free_notice | 815 | 2.01 | 26.05 | 25.64 |
All Upgrades /wp-admin/edit.php?post_type=content-upgrades | 1,657 | 1.98 | 36.53 | 34.10 |
New Upgrade /wp-admin/edit.php?post_type=content-upgrades&page=coupg_free_notice | 818 | 2.01 | 22.39 | 23.27 |
Settings /wp-admin/edit.php?post_type=content-upgrades&page=coupg_settings | 888 | 2.19 | 26.92 | 25.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- coupg_default_upgrade
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/content-upgrades/res/fancybox.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-upgrades/coupg_init.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/content-upgrades/fancyboxes.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-upgrades/coupg_init.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/content-upgrades/coupg_stats_notice.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function coupg_save_settings() in wp-content/plugins/content-upgrades/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/content-upgrades/coupg_free_notice.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: email, signup, popup, locker, content upgrades...
content-upgrades/content-upgrades.php Passed 13 tests
The primary PHP file in "Content Upgrades" version 1.1 is used by WordPress to initiate all plugin functionality
119 characters long description:
A free plugin that lets you create a single "content upgrade", but it can be customised for each page where you use it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,388 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 73 | 49 | 973 |
CSS | 3 | 19 | 2 | 295 |
JavaScript | 2 | 5 | 1 | 120 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 33.33% |
Functions | 31 | |
▷ Named functions | 31 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/lp_bg.png | 2.76KB | 0.09KB | ▼ 96.78% |
res/free_stats_scr.png | 32.63KB | 9.24KB | ▼ 71.68% |
res/imagespr.png | 0.29KB | 0.31KB | 0.00% |
res/close.png | 1.02KB | 0.13KB | ▼ 87.61% |
res/menu_icon.png | 1.53KB | 0.92KB | ▼ 39.76% |