Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.04MB] [CPU: ▼11.29ms] Passed 4 tests
Server-side resources used by Automatic Tags
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.07 ▼2.63 |
Dashboard /wp-admin | 3.39 ▲0.04 | 50.15 ▼10.43 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.93 ▲2.20 |
Add New Post /wp-admin/post-new.php | 5.53 ▼0.36 | 72.40 ▼30.94 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.60 ▼1.15 |
Automatic Tags /wp-admin/options-general.php?page=wpautotag-settings | 3.28 | 32.16 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Automatic Tags: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.26 ▼1.14 | 4.32 ▲2.55 | 38.14 ▼3.77 |
Dashboard /wp-admin | 2,215 ▲27 | 5.83 ▲0.93 | 107.06 ▼12.11 | 39.18 ▼8.34 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.04 ▲0.03 | 39.55 ▲3.85 | 35.63 ▼3.01 |
Add New Post /wp-admin/post-new.php | 6,261 ▲4,719 | 26.10 ▲7.67 | 822.11 ▲202.72 | 58.85 ▲0.87 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.29 ▲0.08 | 98.50 ▲1.62 | 42.90 ▼3.79 |
Automatic Tags /wp-admin/options-general.php?page=wpautotag-settings | 942 | 2.14 | 24.33 | 32.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
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 get_file_data() in wp-content/plugins/automatic-tags/wpautotag.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatic-tags/callbacks.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: categories, nlp, machine learning, natural language processing, suggestions...
automatic-tags/wpautotag.php 92% from 13 tests
Analyzing the main PHP file in "Automatic Tags" version 0.1.0
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("automatic-tags.php" instead of "wpautotag.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,567 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 42 | 58 | 742 |
JavaScript | 2 | 43 | 105 | 720 |
CSS | 1 | 3 | 1 | 105 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 28 | 62.22% |
▷ Anonymous functions | 17 | 37.78% |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tag.png | 9.02KB | 3.42KB | ▼ 62.12% |