Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/tag-generator/taggenerator.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; TagGenerator has a deprecated constructor
Server metrics [RAM: ▼1.76MB] [CPU: ▼54.80ms] Passed 4 tests
Server-side resources used by Tag Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.23 ▼1.23 | 5.24 ▼39.60 |
Dashboard /wp-admin | 2.25 ▼1.06 | 6.84 ▼41.94 |
Posts /wp-admin/edit.php | 2.25 ▼1.11 | 6.92 ▼41.53 |
Add New Post /wp-admin/post-new.php | 2.25 ▼3.64 | 7.07 ▼96.13 |
Media Library /wp-admin/upload.php | 2.25 ▼0.98 | 6.59 ▼28.36 |
Tag Generator /wp-admin/tools.php?page=38c1a82a6f7d877d61b8f6f4aaa3efdb | 2.25 | 6.62 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
taggenerator_autoTag |
theysaidso_admin_options |
can_compress_scripts |
taggenerator_language |
db_upgraded |
widget_recent-comments |
taggenerator_use_title |
Browser metrics Passed 4 tests
An overview of browser requirements for Tag Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.36 ▼1.28 | 3.92 ▲1.85 | 41.30 ▼2.23 |
Dashboard /wp-admin | 2,213 ▲22 | 4.84 ▼0.03 | 102.16 ▼12.94 | 40.66 ▼4.40 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▲0.04 | 39.46 ▲1.90 | 36.71 ▲3.79 |
Add New Post /wp-admin/post-new.php | 1,549 ▲12 | 18.26 ▼5.06 | 586.77 ▼90.68 | 66.95 ▲16.89 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.23 ▲0.01 | 99.66 ▼0.21 | 41.99 ▼0.91 |
Tag Generator /wp-admin/tools.php?page=38c1a82a6f7d877d61b8f6f4aaa3efdb | 759 | 2.05 | 27.41 | 25.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/tag-generator/taggenerator.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; TagGenerator has a deprecated constructor
- This plugin does not fully uninstall, leaving 9 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- taggenerator_use_title
- can_compress_scripts
- taggenerator_autoTag
- widget_recent-comments
- taggenerator_language
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=38c1a82a6f7d877d61b8f6f4aaa3efdb
- > Deprecated in wp-content/plugins/tag-generator/taggenerator.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; TagGenerator has a deprecated constructor
- > GET request to /wp-admin/tools.php?page=38c1a82a6f7d877d61b8f6f4aaa3efdb
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-generator/taggenerator.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: tag, posts, generate tag, post, tags
tag-generator/taggenerator.php 85% from 13 tests
"Tag Generator" version 0.1.3.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 208 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tag-generator.php" instead of "taggenerator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin579 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 79 | 385 |
PO File | 2 | 82 | 138 | 194 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 1 | 5.88% |
▷ Private methods | 4 | 23.53% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected