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 gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.97ms] Passed 4 tests
This is a short check of server-side resources used by Requird
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.85 ▼5.23 |
Dashboard /wp-admin | 3.36 ▲0.05 | 43.58 ▼7.68 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.22 ▼2.19 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.17 ▼8.76 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.61 ▲4.78 |
Requird /wp-admin/tools.php?page=requird | 3.22 | 29.43 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
requird |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Requird: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.48 ▼0.16 | 1.71 ▼0.67 | 38.70 ▼10.86 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▼1.01 | 114.53 ▼1.07 | 42.58 ▲0.12 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.05 | 40.75 ▲3.07 | 35.04 ▲2.06 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 17.70 ▲0.01 | 621.05 ▼71.15 | 62.21 ▼18.98 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▲0.02 | 96.50 ▼3.78 | 41.11 ▼2.44 |
Requird /wp-admin/tools.php?page=requird | 873 | 2.02 | 25.16 | 30.15 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- requird
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=requird
- > Notice in wp-content/plugins/requird/requird-settings.php+197
Undefined index: post
- > GET request to /wp-admin/tools.php?page=requird
- > Notice in wp-content/plugins/requird/requird-settings.php+225
Undefined index: post-custom
- > GET request to /wp-admin/tools.php?page=requird
- > Notice in wp-content/plugins/requird/requird-settings.php+197
Undefined index: page
- > GET request to /wp-admin/tools.php?page=requird
- > Notice in wp-content/plugins/requird/requird-settings.php+225
Undefined index: page-custom
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/requird/requird-settings.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/requird/requird.php:27
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Requires at least: Invalid version format
requird/requird.php Passed 13 tests
The main PHP file in "Requird" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
27 characters long description:
Require fields for WP-Admin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected336 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 47 | 34 | 209 |
JavaScript | 1 | 5 | 8 | 127 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin