Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.21ms] Passed 4 tests
A check of server-side resources used by WP Required Taxonomies - Categories and Tags Mandatory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.98 ▼7.39 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.04 ▼3.31 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.24 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 93.12 ▲5.53 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.80 ▲5.02 |
Required Taxonomies /wp-admin/options-general.php?page=wprtt_welcome_page | 3.31 | 34.13 |
Required Taxonomies /wp-admin/admin.php?page=wprtt_welcome_page | 3.31 | 35.14 |
Required Taxonomies /wp-admin/admin.php?page=wprtt_whats_new | 3.23 | 32.51 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
wprtt_welcome_redirect |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Required Taxonomies - Categories and Tags Mandatory
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.30 ▼1.44 | 4.50 ▲2.37 | 40.13 ▼2.04 |
Dashboard /wp-admin | 2,210 ▲19 | 5.83 ▼0.17 | 95.92 ▼7.94 | 39.18 ▼0.72 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.02 | 40.20 ▲5.99 | 35.20 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 22.96 ▲4.84 | 589.59 ▼12.40 | 59.25 ▼2.44 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.00 | 94.26 ▼3.29 | 39.73 ▼2.98 |
Required Taxonomies /wp-admin/options-general.php?page=wprtt_welcome_page | 912 | 2.04 | 23.34 | 31.51 |
Required Taxonomies /wp-admin/admin.php?page=wprtt_welcome_page | 895 | 1.71 | 23.02 | 29.49 |
Required Taxonomies /wp-admin/admin.php?page=wprtt_whats_new | 772 | 2.05 | 22.92 | 24.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- wprtt_welcome_redirect
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wprtt_whats_new
- > Warning in wp-content/plugins/required-taxonomies/vendor/vg-plugin-sdk/index.php+164
include(/1.1.9.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=wprtt_whats_new
- > Warning in wp-content/plugins/required-taxonomies/vendor/vg-plugin-sdk/index.php+164
include(): Failed opening '/1.1.9.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=wprtt_whats_new
- > Notice in wp-content/plugins/required-taxonomies/vendor/vg-plugin-sdk/index.php+166
Undefined variable: items
- > GET request to /wp-admin/admin.php?page=wprtt_whats_new
- > Warning in wp-content/plugins/required-taxonomies/vendor/vg-plugin-sdk/index.php+182
include(): Filename cannot be empty
- > GET request to /wp-admin/admin.php?page=wprtt_whats_new
- > Warning in wp-content/plugins/required-taxonomies/vendor/vg-plugin-sdk/index.php+182
include(): Failed opening '' for inclusion (include_path='.:/usr/share/php')
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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/required-taxonomies/index.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/required-taxonomies/vendor/vg-plugin-sdk/views/page-template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/required-taxonomies/views/welcome-page-content.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/required-taxonomies/vendor/vg-plugin-sdk/samples/email-optin-form.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #2 in required-taxonomies/assets to your readme.txt
required-taxonomies/index.php 92% from 13 tests
The main file in "WP Required Taxonomies - Categories and Tags Mandatory" v. 1.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("required-taxonomies.php" instead of "index.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 plugin543 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 115 | 42 | 455 |
CSS | 1 | 6 | 0 | 48 |
JavaScript | 1 | 3 | 5 | 40 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin