Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Error in wp-content/plugins/ry-toolkit/class.main.php+83
Uncaught TypeError: Return value of RY_Toolkit::get_option() must be an instance of mixed, bool returned in wp-content/plugins/ry-toolkit/class.main.php:83
Stack trace:
#0 wp-content/plugins/ry-toolkit/includes/update.php(7): RY_Toolkit::get_option()
#1 wp-content/plugins/ry-toolkit/class.main.php(37): RY_Toolkit_Update::update()
#2 wp-content/plugins/ry-toolkit/class.main.php(15): RY_Toolkit->do_init()
#3 wp-content/plugins/ry-toolkit/ry-toolkit.php(27): RY_Toolkit::instance()
#4 wp-content/plugins/ry-toolkit/ry-toolkit.php(30): RY_Toolkit()
#5 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#6 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.85ms] Passed 4 tests
This is a short check of server-side resources used by RY Toolkit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.74 ▼6.52 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.84 ▼8.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.30 ▼1.63 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.68 ▼14.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.15 ▲5.70 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
RY Toolkit: 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,790 ▲28 | 14.34 ▲0.00 | 1.66 ▼0.22 | 45.44 ▲0.97 |
Dashboard /wp-admin | 2,195 ▲21 | 5.60 ▼0.01 | 85.83 ▼15.62 | 39.61 ▲2.21 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.95 ▼0.04 | 40.28 ▼1.05 | 36.42 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.44 ▲0.26 | 681.77 ▲26.03 | 47.62 ▼27.26 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.05 | 110.38 ▲3.46 | 49.62 ▲5.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ry-toolkit/admin/page/html/options-nav.php
- > /wp-content/plugins/ry-toolkit/ry-toolkit.php
- 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RY_Toolkit_Admin_Page' not found in wp-content/plugins/ry-toolkit/admin/page/options.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/ry-toolkit/admin/includes/cron-event-list-table.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_sitemap_providers() in wp-content/plugins/ry-toolkit/admin/page/html/options-sitemap.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_sitemap_providers() in wp-content/plugins/ry-toolkit/admin/page/html/options-wp-rocket.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ry-toolkit/admin/html/media/big-size.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ry-toolkit/admin/html/media/disable-subsize.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/ry-toolkit/admin/html/action_form.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function views() on null in wp-content/plugins/ry-toolkit/admin/page/html/cron-event.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ry-toolkit/admin/page/html/tools.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ry-toolkit/admin/page/html/options-frontend.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: tool
ry-toolkit/ry-toolkit.php 92% from 13 tests
"RY Toolkit" version 1.2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "5.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,636 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 370 | 37 | 2,145 |
PO File | 1 | 167 | 202 | 396 |
JavaScript | 2 | 2 | 0 | 48 |
CSS | 2 | 9 | 0 | 47 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.06 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 4 | 25.00% |
Methods | 117 | |
▷ Static methods | 30 | 25.64% |
▷ Public methods | 78 | 66.67% |
▷ Protected methods | 34 | 29.06% |
▷ Private methods | 5 | 4.27% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin