Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.04ms] Passed 4 tests
Server-side resources used by Simple Colorbox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.35 ▲1.89 |
Dashboard /wp-admin | 3.33 ▼0.01 | 46.77 ▼12.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 53.00 ▲4.99 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 124.28 ▲15.54 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.79 ▲1.41 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Colorbox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 13.56 ▼0.82 | 11.86 ▲10.24 | 43.29 ▼0.12 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.01 | 90.15 ▲0.76 | 41.44 ▼2.15 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.02 | 38.88 ▼0.90 | 36.71 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 22.95 ▼0.16 | 675.34 ▼25.44 | 56.20 ▲4.60 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▼0.01 | 98.98 ▼5.78 | 43.27 ▼0.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-colorbox/index.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
simple-colorbox/index.php 92% from 13 tests
The principal PHP file in "Simple Colorbox" v. 1.6.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-colorbox.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin277 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 23 | 65 | 201 |
PHP | 1 | 25 | 72 | 75 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
27 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/theme4/images/ie6/borderBottomRight.png | 0.46KB | 0.54KB | 0.00% |
themes/theme1/images/ie6/borderBottomLeft.png | 0.21KB | 0.20KB | ▼ 4.19% |
themes/theme1/images/loading_background.png | 0.15KB | 0.15KB | ▼ 0.64% |
themes/theme4/images/border1.png | 1.03KB | 0.82KB | ▼ 20.34% |
themes/theme4/images/ie6/borderMiddleLeft.png | 0.14KB | 0.16KB | 0.00% |