Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.88ms] Passed 4 tests
Server-side resources used by Ray
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.00 | 42.80 ▼9.56 |
Dashboard /wp-admin | 3.57 ▲0.00 | 48.17 ▼18.59 |
Posts /wp-admin/edit.php | 3.68 ▲0.00 | 50.80 ▼7.31 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.00 | 87.39 ▼8.06 |
Media Library /wp-admin/upload.php | 3.49 ▲0.00 | 40.16 ▲0.73 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 454 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Ray
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.37 ▼0.01 | 1.64 ▼0.88 | 44.15 ▼3.34 |
Dashboard /wp-admin | 2,195 ▲21 | 5.60 ▼0.11 | 93.62 ▼1.54 | 38.88 ▼6.37 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.01 | 38.76 ▼0.46 | 36.92 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 23.45 ▲0.19 | 598.94 ▼81.31 | 58.53 ▼2.23 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.01 | 97.05 ▼3.00 | 49.47 ▲2.44 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 196× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Collection\\ArrayInterface' not found in wp-content/plugins/spatie-ray/vendor/ramsey/collection/src/AbstractArray.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Collection\\Map\\MapInterface' not found in wp-content/plugins/spatie-ray/vendor/ramsey/collection/src/Map/TypedMapInterface.php:24
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Collection\\AbstractCollection' not found in wp-content/plugins/spatie-ray/vendor/ramsey/uuid/src/Provider/Node/NodeProviderCollection.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Exception\\UuidExceptionInterface' not found in wp-content/plugins/spatie-ray/vendor/ramsey/uuid/src/Exception/DateTimeException.php:22
- > PHP Parse error
syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) in wp-content/plugins/spatie-ray/vendor/ramsey/uuid/src/Converter/Number/GenericNumberConverter.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'Ramsey\\Collection\\AbstractCollection' not found in wp-content/plugins/spatie-ray/vendor/ramsey/collection/src/AbstractSet.php:25
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/spatie-ray/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php on line 128
- > PHP Parse error
syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE) in wp-content/plugins/spatie-ray/vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php on line 53
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\RandomGeneratorInterface' not found in wp-content/plugins/spatie-ray/vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php:30
- > PHP Fatal error
Uncaught Error: Class 'Spatie\\Ray\\Payloads\\Payload' not found in wp-content/plugins/spatie-ray/vendor/spatie/ray/src/Payloads/NewScreenPayload.php:5
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Here's how the Ray desktop app looks like.) image missing
spatie-ray/wp-ray.php 92% from 13 tests
Analyzing the main PHP file in "Ray" version 1.7.5
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("spatie-ray.php" instead of "wp-ray.php")
Code Analysis Passed 3 tests
File types Passed 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
Success! There were no dangerous files found in this plugin30,292 lines of code in 432 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 382 | 5,980 | 12,508 | 26,485 |
JSON | 18 | 0 | 0 | 1,984 |
Markdown | 28 | 923 | 0 | 1,666 |
CSS | 1 | 0 | 0 | 130 |
XML | 2 | 4 | 1 | 17 |
JavaScript | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 8.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 64 | |
Interfaces | 42 | |
Traits | 18 | |
Classes | 297 | |
▷ Abstract classes | 11 | 3.70% |
▷ Concrete classes | 286 | 96.30% |
▷ Final classes | 42 | 14.69% |
Methods | 1,738 | |
▷ Static methods | 306 | 17.61% |
▷ Public methods | 1,511 | 86.94% |
▷ Protected methods | 92 | 5.29% |
▷ Private methods | 135 | 7.77% |
Functions | 169 | |
▷ Named functions | 99 | 58.58% |
▷ Anonymous functions | 70 | 41.42% |
Constants | 165 | |
▷ Global constants | 9 | 5.45% |
▷ Class constants | 156 | 94.55% |
▷ Public constants | 120 | 76.92% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin