Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/pg-fixed-boxes-wp-popup-sidebars/inc/class_box.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; pgboxdata has a deprecated constructor
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.91ms] Passed 4 tests
Analyzing server-side resources used by PG FIXED BOX
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 45.25 ▲7.84 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.36 ▼4.90 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.68 ▼3.68 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.66 ▼23.71 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.92 ▲0.65 |
Fixed Boxes /wp-admin/options-general.php?page=pg-main | 3.44 | 36.33 |
Add New Box /wp-admin/options-general.php?page=pg-add | 3.37 | 34.61 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
fixed_boxes_data |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PG FIXED BOX
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲149 | 13.98 ▼0.60 | 9.03 ▲7.18 | 42.96 ▲0.71 |
Dashboard /wp-admin | 2,228 ▲51 | 5.97 ▲0.30 | 93.16 ▼0.64 | 37.98 ▼6.14 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 2.62 ▲0.63 | 41.45 ▲1.32 | 34.81 ▼4.13 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.11 ▲0.32 | 721.20 ▲48.79 | 36.40 ▼15.96 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.48 ▲0.28 | 99.64 ▼5.18 | 42.18 ▼2.50 |
Fixed Boxes /wp-admin/options-general.php?page=pg-main | 1,729 | 2.77 | 55.16 | 34.21 |
Add New Box /wp-admin/options-general.php?page=pg-add | 1,705 | 2.74 | 55.21 | 31.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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- fixed_boxes_data
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/pg-fixed-boxes-wp-popup-sidebars/inc/pg-template.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Requires at least: Version format is invalid
- Donate link: Invalid URI ("fixedboxes.esy.es/wp")
pg-fixed-boxes-wp-popup-sidebars/pg-fixed-box.php 92% from 13 tests
The primary PHP file in "PG FIXED BOX" version 2.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pg-fixed-boxes-wp-popup-sidebars.php" instead of "pg-fixed-box.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,032 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 128 | 53 | 1,097 |
PO File | 2 | 162 | 175 | 389 |
JavaScript | 5 | 17 | 79 | 335 |
CSS | 6 | 29 | 3 | 211 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 5.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
skins/dark/img/closebtn.png | 4.29KB | 0.77KB | ▼ 82.05% |
skins/light/img/closebtn-hover.png | 2.88KB | 0.17KB | ▼ 94.21% |
skins/light/img/closebtn.png | 2.88KB | 0.17KB | ▼ 94.21% |
skins/flat/img/closebtn-hover.png | 2.81KB | 0.10KB | ▼ 96.28% |
skins/flat/img/closebtn.png | 2.81KB | 0.10KB | ▼ 96.28% |