Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-custom-taxonomy-meta/includes/options.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; wpaft_admin has a deprecated constructor
Server metrics [RAM: ▼1.76MB] [CPU: ▼52.66ms] Passed 4 tests
An overview of server-side resources used by Category and Taxonomy Meta Fields
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.81 ▼5.71 |
Dashboard /wp-admin | 2.19 ▼1.15 | 7.65 ▼51.23 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 6.84 ▼36.14 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 10.41 ▼95.78 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 7.72 ▼27.48 |
Taxonomy Meta /wp-admin/options-general.php?page=texonomy_meta | 2.20 | 8.81 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_termsmeta |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
wpaft_db_version |
widget_recent-posts |
wpaft_configuration |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Category and Taxonomy Meta Fields
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.18 ▼1.20 | 1.66 ▼0.22 | 36.24 ▼7.57 |
Dashboard /wp-admin | 2,213 ▲28 | 5.86 ▲0.00 | 97.90 ▼20.66 | 38.04 ▼9.64 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.05 ▲0.00 | 38.45 ▲0.15 | 30.98 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.08 ▲4.86 | 664.54 ▲48.87 | 56.36 ▲2.15 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.24 ▲0.04 | 108.33 ▲6.40 | 44.57 ▲1.88 |
Taxonomy Meta /wp-admin/options-general.php?page=texonomy_meta | 954 | 1.73 | 24.49 | 42.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-custom-taxonomy-meta/includes/options.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; wpaft_admin has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=texonomy_meta
- > Deprecated in wp-content/plugins/wp-custom-taxonomy-meta/includes/options.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; wpaft_admin has a deprecated constructor
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant PLUGINDIR - assumed 'PLUGINDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php on line 32
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php:50
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php on line 15
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php on line 48
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: category short description, category image, category meta, taxonomy description, taxonomy short description...
wp-custom-taxonomy-meta/wp-texonomy-meta.php 92% from 13 tests
The primary PHP file in "Category and Taxonomy Meta Fields" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-custom-taxonomy-meta.php" instead of "wp-texonomy-meta.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin604 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 259 | 121 | 565 |
JavaScript | 1 | 14 | 1 | 39 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
2 PNG files occupy 0.45MB with 0.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.94KB | 11.97KB | ▼ 39.97% |
screenshot-2.png | 444.97KB | 103.34KB | ▼ 76.78% |