Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲1.10MB] [CPU: ▲405.69ms] 50% from 4 tests
Server-side resources used by WordPress Image Security and Compression Plugin - SmartFrame
Please fix the following
- CPU: You should keep total CPU usage under 500.00ms (currently 906.07ms on /wp-admin/admin.php?page=smart-frame-tutorial)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 405.69ms on /wp-admin/admin.php?page=smart-frame-tutorial)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.00 ▲1.48 | 317.73 ▲266.87 |
Dashboard /wp-admin | 6.00 ▲2.59 | 935.35 ▲900.97 |
Posts /wp-admin/edit.php | 6.06 ▲2.41 | 920.04 ▲877.44 |
Add New Post /wp-admin/post-new.php | 4.89 ▼2.08 | 861.24 ▼422.52 |
Media Library /wp-admin/upload.php | 6.01 ▲2.71 | 952.58 ▲929.04 |
Examples /wp-admin/admin.php?page=smart-frame-examples | 5.98 | 907.56 |
Account /wp-admin/admin.php?page=smart-frame-register | 6.00 | 968.23 |
Settings /wp-admin/admin.php?page=smart-frame-main-menu | 5.98 | 985.43 |
Help /wp-admin/admin.php?page=smart-frame-tutorial | 5.98 | 906.07 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 289 new files
Database: 1 new table, 5 new options
New tables |
---|
wp_smartframe_image |
New WordPress options |
---|
smartframe-migration-3 |
smartframe-migration-2 |
sfm_smartframeWpPluginApiKey |
smartframe-migration-1 |
smartframe-migration-4 |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Image Security and Compression Plugin - SmartFrame
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,991 ▲237 | 16.16 ▲0.53 | 10.04 ▲3.44 | 2.78 ▲0.37 |
Dashboard /wp-admin | 2,964 ▲103 | 6.72 ▲0.54 | 130.49 ▼6.40 | 171.35 ▲7.19 |
Posts /wp-admin/edit.php | 2,759 ▲68 | 3.32 ▲0.08 | 68.63 ▼0.45 | 126.20 ▼24.44 |
Add New Post /wp-admin/post-new.php | 1,668 ▲7 | 18.88 ▲2.65 | 362.72 ▼46.84 | 186.94 ▲28.98 |
Media Library /wp-admin/upload.php | 1,771 ▲76 | 5.85 ▲0.30 | 133.56 ▼14.32 | 182.77 ▼4.17 |
Examples /wp-admin/admin.php?page=smart-frame-examples | 3,605 | 6.40 | 596.41 | 215.85 |
Account /wp-admin/admin.php?page=smart-frame-register | 1,250 | 2.96 | 68.46 | 92.59 |
Settings /wp-admin/admin.php?page=smart-frame-main-menu | 1,329 | 2.96 | 63.97 | 125.21 |
Help /wp-admin/admin.php?page=smart-frame-tutorial | 1,208 | 2.68 | 63.57 | 125.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_smartframe_image
- This plugin did not uninstall successfully, leaving 5 options in the database
- smartframe-migration-4
- smartframe-migration-3
- sfm_smartframeWpPluginApiKey
- smartframe-migration-1
- smartframe-migration-2
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/smartframe/admin/partials/notifications/activate-api-key.php
- > /wp-content/plugins/smartframe/admin/partials/footer.php
- > /wp-content/plugins/smartframe/admin/partials/parts/header.php
- > /wp-content/plugins/smartframe/admin/partials/inputs/smartframe-frame.php
- 87× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\RuleValueList' not found in wp-content/plugins/smartframe/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/CalcRuleValueList.php:5
- > PHP Notice
Undefined variable: imageId in wp-content/plugins/smartframe/admin/partials/inputs/smartframe-frame.php on line 1
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/smartframe/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Property/AtRule.php:8
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\CSSList\\CSSList' not found in wp-content/plugins/smartframe/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/KeyFrame.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/smartframe/vendor/guzzlehttp/psr7/src/NoSeekStream.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/smartframe/vendor/guzzlehttp/psr7/src/Response.php:10
- > PHP Warning
Use of undefined constant SMARTFRAME_PLUGIN_URL - assumed 'SMARTFRAME_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/smartframe/admin/partials/parts/header.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/smartframe/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/smartframe/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/smartframe/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 86% 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:
- Tags: You are using too many tags: 89 tag instead of maximum 10
smartframe/smartframe.php 77% from 13 tests
"WordPress Image Security and Compression Plugin - SmartFrame" version 2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path must begin with a forward slash character ("/")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Domain Path: The domain path should use only dashes and lowercase characters ("")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin30,527 lines of code in 263 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 214 | 3,137 | 6,100 | 15,455 |
JSON | 12 | 0 | 0 | 7,670 |
Markdown | 13 | 1,176 | 0 | 3,903 |
JavaScript | 12 | 439 | 340 | 2,240 |
CSS | 4 | 291 | 77 | 1,115 |
Sass | 3 | 11 | 1 | 72 |
YAML | 2 | 5 | 0 | 35 |
XML | 2 | 4 | 0 | 28 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 11.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 48 | |
Interfaces | 22 | |
Traits | 2 | |
Classes | 156 | |
▷ Abstract classes | 9 | 5.77% |
▷ Concrete classes | 147 | 94.23% |
▷ Final classes | 8 | 5.44% |
Methods | 1,293 | |
▷ Static methods | 125 | 9.67% |
▷ Public methods | 1,131 | 87.47% |
▷ Protected methods | 11 | 0.85% |
▷ Private methods | 151 | 11.68% |
Functions | 173 | |
▷ Named functions | 60 | 34.68% |
▷ Anonymous functions | 113 | 65.32% |
Constants | 109 | |
▷ Global constants | 3 | 2.75% |
▷ Class constants | 106 | 97.25% |
▷ Public constants | 106 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.34MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/logo_transparentbackground_white.png | 342.43KB | 3.17KB | ▼ 99.08% |
admin/img/wp_icon@2x.png | 2.41KB | 1.20KB | ▼ 50.16% |
admin/img/wp_icon.png | 1.96KB | 0.73KB | ▼ 63.02% |