Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.75MB] [CPU: ▼3.29ms] Passed 4 tests
A check of server-side resources used by Rokka Integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.22 ▲0.75 | 49.56 ▲9.60 |
Dashboard /wp-admin | 4.07 ▲0.72 | 50.54 ▼15.35 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 56.10 ▲5.35 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.78 | 88.60 ▼8.74 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 42.07 ▲5.58 |
Rokka Settings /wp-admin/options-general.php?page=rokka-integration_settings | 3.97 | 37.11 |
Server storage [IO: ▲2.92MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 513 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
rokka-integration_version |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Rokka Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.70 ▼0.02 | 1.57 ▼0.04 | 42.34 ▼1.60 |
Dashboard /wp-admin | 2,208 ▲31 | 5.65 ▼0.01 | 90.65 ▲2.84 | 39.28 ▲0.95 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.06 ▲0.08 | 39.62 ▲2.68 | 38.80 ▲3.87 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.05 ▼0.16 | 642.32 ▼45.23 | 50.68 ▼6.96 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.19 ▲0.03 | 95.50 ▼3.34 | 40.47 ▼3.01 |
Rokka Settings /wp-admin/options-general.php?page=rokka-integration_settings | 956 | 2.28 | 26.21 | 30.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- rokka-integration_version
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/rokka-integration/vendor/jbroadway/urlify/scripts/transliterate.php
- > /wp-content/plugins/rokka-integration/vendor/jbroadway/urlify/scripts/filter.php
- > /wp-content/plugins/rokka-integration/vendor/jbroadway/urlify/scripts/downcode.php
- 68× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Rokka\\Client\\LocalImage\\AbstractLocalImage' not found in wp-content/plugins/rokka-integration/vendor/rokka/client/src/LocalImage/RokkaHash.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/rokka-integration/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/rokka-integration/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Notice
Undefined variable: argc in wp-content/plugins/rokka-integration/vendor/jbroadway/urlify/scripts/transliterate.php on line 10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/rokka-integration/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
- > PHP Fatal error
Uncaught Error: Class 'Rokka\\Client\\Core\\AbstractStack' not found in wp-content/plugins/rokka-integration/vendor/rokka/client/src/Core/StackAbstract.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/rokka-integration/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Class 'Rokka\\Client\\Core\\AbstractStack' not found in wp-content/plugins/rokka-integration/vendor/rokka/client/src/Core/StackUri.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/rokka-integration/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > PHP Parse error
syntax error, unexpected '|', expecting '{' in wp-content/plugins/rokka-integration/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Media management with rokka integration), #2 (Rokka settings), #3 (Rokka stack synchronization), #4 (Rokka mass uploader)
rokka-integration/rokka-integration.php Passed 13 tests
The main file in "Rokka Integration" v. 5.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
Rokka image processing and cdn plugin for WordPress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected54,242 lines of code in 486 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 426 | 4,005 | 11,506 | 47,092 |
Markdown | 25 | 1,633 | 1 | 4,676 |
JSON | 16 | 0 | 0 | 1,680 |
PO File | 2 | 220 | 306 | 556 |
YAML | 9 | 43 | 5 | 214 |
Dockerfile | 1 | 8 | 0 | 10 |
XML | 1 | 0 | 0 | 8 |
CSS | 3 | 1 | 7 | 3 |
JavaScript | 3 | 0 | 3 | 3 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 143 | |
▷ Abstract classes | 4 | 2.80% |
▷ Concrete classes | 139 | 97.20% |
▷ Final classes | 26 | 18.71% |
Methods | 1,217 | |
▷ Static methods | 282 | 23.17% |
▷ Public methods | 1,003 | 82.42% |
▷ Protected methods | 22 | 1.81% |
▷ Private methods | 192 | 15.78% |
Functions | 178 | |
▷ Named functions | 72 | 40.45% |
▷ Anonymous functions | 106 | 59.55% |
Constants | 301 | |
▷ Global constants | 78 | 25.91% |
▷ Class constants | 223 | 74.09% |
▷ Public constants | 206 | 92.38% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.59MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 174.50KB | 47.33KB | ▼ 72.88% |
assets/images/logo-liip.png | 1.99KB | 1.88KB | ▼ 5.63% |
screenshot-4.png | 147.44KB | 36.80KB | ▼ 75.04% |
screenshot-1.png | 116.07KB | 31.38KB | ▼ 72.97% |
screenshot-3.png | 166.11KB | 38.24KB | ▼ 76.98% |