Benchmarks
Plugin footprint Passed 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 gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼140.27ms] Passed 4 tests
Server-side resources used by CropRefine
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 36.02 ▲12.37 |
Dashboard /wp-admin | 3.16 ▲0.10 | 46.71 ▲2.52 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 47.43 ▲8.79 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 94.56 ▼563.38 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 34.90 ▼8.99 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by CropRefine
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲110 | 15.88 ▲0.59 | 6.93 ▼0.82 | 51.28 ▲5.13 |
Dashboard /wp-admin | 2,987 ▲53 | 6.16 ▲0.11 | 136.09 ▼1.99 | 132.96 ▲22.45 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.62 ▼0.07 | 58.35 ▼9.75 | 96.39 ▲12.68 |
Add New Post /wp-admin/post-new.php | 1,899 ▲227 | 19.34 ▲0.41 | 372.18 ▲13.00 | 118.12 ▲11.21 |
Media Library /wp-admin/upload.php | 1,779 ▼28 | 5.25 ▲0.27 | 124.56 ▼40.17 | 142.68 ▲19.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/croprefine/croprefine.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: resize, media, upload, management, image...
croprefine/croprefine.php Passed 13 tests
The main PHP file in "CropRefine" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Giving you greater control over how each of your media item sizes are cropped.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin2,084 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 326 | 94 | 1,350 |
PHP | 1 | 47 | 87 | 386 |
CSS | 2 | 38 | 13 | 348 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_img/screenshot-2.png | 85.24KB | 29.67KB | ▼ 65.20% |
_img/screenshot-1.png | 21.91KB | 8.72KB | ▼ 60.18% |
admin_icon.png | 1.11KB | 0.16KB | ▼ 85.96% |
_img/bulcclub.png | 2.74KB | 1.77KB | ▼ 35.19% |