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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▲0.78ms] Passed 4 tests
Analyzing server-side resources used by CaptionPix
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 44.36 ▲2.00 |
Dashboard /wp-admin | 3.88 ▲0.57 | 52.23 ▲4.19 |
Posts /wp-admin/edit.php | 3.99 ▲0.64 | 53.31 ▲6.23 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 87.52 ▼5.52 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 39.05 ▲2.44 |
Dashboard (v1.8) /wp-admin/admin.php?page=captionpix | 3.77 | 36.25 |
Settings /wp-admin/admin.php?page=captionpix-core | 3.79 | 35.33 |
Themes /wp-admin/admin.php?page=captionpix-theme | 3.76 | 38.25 |
License /wp-admin/admin.php?page=captionpix-api | 3.78 | 37.05 |
Server storage [IO: ▲0.66MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
captionpix_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CaptionPix
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.23 ▼1.33 | 1.73 ▼0.10 | 42.43 ▼8.37 |
Dashboard /wp-admin | 2,244 ▲53 | 4.82 ▼0.22 | 110.80 ▲3.11 | 42.34 ▼0.90 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.03 ▼0.02 | 38.37 ▼1.79 | 34.96 ▲2.69 |
Add New Post /wp-admin/post-new.php | 1,570 ▲36 | 18.24 ▼4.89 | 592.89 ▼75.30 | 51.77 ▲0.72 |
Media Library /wp-admin/upload.php | 1,426 ▲44 | 4.19 ▼0.03 | 95.86 ▼1.32 | 41.43 ▼2.56 |
Dashboard (v1.8) /wp-admin/admin.php?page=captionpix | 912 | 2.21 | 25.63 | 29.86 |
Settings /wp-admin/admin.php?page=captionpix-core | 1,212 | 2.25 | 64.62 | 61.11 |
Themes /wp-admin/admin.php?page=captionpix-theme | 1,001 | 2.21 | 36.87 | 29.99 |
License /wp-admin/admin.php?page=captionpix-api | 1,075 | 2.30 | 40.20 | 38.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- captionpix_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=captionpix-theme
- > Warning in wp-content/plugins/captionpix/classes/class-theme.php+39
count(): Parameter must be an array or an object that implements Countable
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
Please take a closer look at the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Captionpix_Module' not found in wp-content/plugins/captionpix/classes/class-theme.php:2
- > PHP Fatal error
Uncaught Error: Class 'Captionpix_Module' not found in wp-content/plugins/captionpix/classes/class-api.php:3
- > PHP Fatal error
Uncaught Error: Class 'Captionpix_Admin' not found in wp-content/plugins/captionpix/classes/class-api-admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'Captionpix_Module' not found in wp-content/plugins/captionpix/classes/class-core.php:2
- > PHP Fatal error
Uncaught Error: Class 'Captionpix_Admin' not found in wp-content/plugins/captionpix/classes/class-core-admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'Captionpix_Admin' not found in wp-content/plugins/captionpix/classes/class-theme-admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'Captionpix_Admin' not found in wp-content/plugins/captionpix/classes/class-dashboard.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #2, #3 in captionpix/assets to your readme.txt
captionpix/main.php 92% from 13 tests
"CaptionPix" version 1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("captionpix.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,486 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 361 | 28 | 2,291 |
CSS | 6 | 7 | 0 | 122 |
JavaScript | 3 | 2 | 3 | 73 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 34.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 273 | |
▷ Static methods | 1 | 0.37% |
▷ Public methods | 242 | 88.64% |
▷ Protected methods | 1 | 0.37% |
▷ Private methods | 30 | 10.99% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 17 | |
▷ Global constants | 15 | 88.24% |
▷ Class constants | 2 | 11.76% |
▷ Public constants | 2 | 100.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
10 PNG files occupy 0.28MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/captionpix-icon.png | 0.69KB | 0.98KB | 0.00% |
borders/grunge.png | 33.64KB | 17.54KB | ▼ 47.86% |
images/tick.png | 0.52KB | 0.52KB | 0.00% |
borders/chain.png | 6.10KB | 3.32KB | ▼ 45.56% |
images/get-free-license-key.png | 50.91KB | 15.16KB | ▼ 70.23% |