Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Compile error in wp-content/plugins/wp-resizely/vendor/usabilitydynamics/lib-utility/lib/loader.php+294
Redefinition of parameter $prepend
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.29ms] Passed 4 tests
Analyzing server-side resources used by WP-Resizely - Dynamic image resizing for thumbnails and responsive images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.14 ▼4.41 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.15 ▼10.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.47 ▲1.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.98 ▼3.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.31 ▲1.57 |
Server storage [IO: ▲1.08MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 195 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-Resizely - Dynamic image resizing for thumbnails and responsive images
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.29 ▼1.10 | 4.92 ▲3.13 | 40.43 ▼2.66 |
Dashboard /wp-admin | 2,206 ▲15 | 5.80 ▲0.90 | 98.91 ▼4.48 | 37.94 ▼8.51 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.02 | 40.24 ▲4.16 | 35.58 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.51 ▲5.30 | 629.31 ▲11.59 | 46.51 ▼15.45 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.31 ▲0.12 | 93.99 ▼20.34 | 40.76 ▼4.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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 | 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
Almost there! Just fix the following items
- 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Tests\\BaseTestCase' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/tests/JsonSchema/Tests/NumberAndIntegerTypesTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Tests\\BaseTestCase' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/tests/JsonSchema/Tests/UnionWithNullValueTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Schema.php:11
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Tests\\BaseTestCase' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/tests/JsonSchema/Tests/RequireTest.php:5
- > PHP Fatal error
Cannot use 'String' as class name as it is reserved in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/String.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Enum.php:11
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Collection.php:11
- > PHP Fatal error
Cannot use 'Object' as class name as it is reserved in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Object.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Undefined.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/tests/JsonSchema/Tests/BaseTestCase.php:7
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: cdn, html5, responsive, thumbnails, dom...
wp-resizely/wp-resizely.php Passed 13 tests
"WP-Resizely - Dynamic image resizing for thumbnails and responsive images" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
23 characters long description:
Dynamic image resizing.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-resizely/vendor/justinrainbow/json-schema/docs/make.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 1,946 | 2,283 | 8,653 |
PHP | 50 | 860 | 1,774 | 3,960 |
HTML | 13 | 847 | 3 | 3,190 |
JSON | 23 | 0 | 0 | 2,529 |
CSS | 2 | 135 | 93 | 556 |
make | 3 | 36 | 15 | 171 |
DOS Batch | 1 | 23 | 1 | 166 |
XHTML | 3 | 31 | 6 | 162 |
Markdown | 7 | 62 | 0 | 149 |
PO File | 2 | 3 | 3 | 38 |
Python | 1 | 65 | 148 | 28 |
XML | 1 | 2 | 0 | 24 |
reStructuredText | 1 | 20 | 26 | 16 |
YAML | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 13.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 220.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 2 | 4.76% |
▷ Concrete classes | 40 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 197 | |
▷ Static methods | 75 | 38.07% |
▷ Public methods | 185 | 93.91% |
▷ Protected methods | 12 | 6.09% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/usabilitydynamics/lib-ui/static/codex/assets/css/logo.png | 6.16KB | 3.02KB | ▼ 51.00% |
vendor/usabilitydynamics/lib-utility/static/codex/assets/css/logo.png | 6.16KB | 3.02KB | ▼ 51.00% |
vendor/usabilitydynamics/lib-ui/static/codex/assets/favicon.png | 0.72KB | 0.71KB | ▼ 2.16% |
vendor/usabilitydynamics/lib-utility/static/codex/assets/css/external-small.png | 0.48KB | 0.38KB | ▼ 19.76% |
vendor/usabilitydynamics/resizely-client/static/codex/assets/css/external-small.png | 0.48KB | 0.38KB | ▼ 19.76% |