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.26MB] [CPU: ▲0.51ms] Passed 4 tests
Analyzing server-side resources used by Image Formatr
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 44.04 ▲1.60 |
Dashboard /wp-admin | 3.58 ▲0.27 | 60.33 ▲11.00 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 57.98 ▲5.55 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 91.82 ▼16.11 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 47.81 ▲12.17 |
Image Formatr /wp-admin/options-general.php?page=class.admin.php | 3.47 | 37.50 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
plugin_image-formatr |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Image Formatr
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲132 | 13.40 ▼0.88 | 9.18 ▲7.43 | 41.75 ▲0.86 |
Dashboard /wp-admin | 2,216 ▲39 | 5.56 ▲0.02 | 90.34 ▼1.12 | 42.83 ▲1.77 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.05 ▲0.08 | 36.63 ▼9.57 | 34.33 ▼5.77 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 22.64 ▲4.37 | 685.16 ▲30.26 | 61.21 ▼3.75 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.22 ▲0.05 | 99.57 ▼4.76 | 43.23 ▼0.61 |
Image Formatr /wp-admin/options-general.php?page=class.admin.php | 2,032 | 2.04 | 26.85 | 32.98 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- plugin_image-formatr
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/image-formatr/image-formatr.php:34
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: post, flickr, images, caption, formatting...
image-formatr/image-formatr.php Passed 13 tests
"Image Formatr" version 1.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
Formats all content images on a page / post giving them captions and popups.
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
No dangerous file extensions were detected2,322 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 167 | 287 | 1,049 |
JavaScript | 1 | 183 | 95 | 637 |
CSS | 2 | 87 | 29 | 435 |
PO File | 1 | 72 | 76 | 201 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 41.25 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
27 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prettyPhoto/light_rounded/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
images/prettyPhoto/dark_square/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
images/prettyPhoto/facebook/sprite.png | 4.13KB | 2.26KB | ▼ 45.33% |
images/prettyPhoto/facebook/contentPatternRight.png | 0.13KB | 0.10KB | ▼ 24.26% |
images/prettyPhoto/default/sprite_prev.png | 1.34KB | 0.38KB | ▼ 71.73% |