Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.04ms] Passed 4 tests
Analyzing server-side resources used by insert tags
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.55 ▼7.00 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.60 ▲1.31 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.98 ▼2.13 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 103.70 ▲9.55 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.74 ▼0.33 |
settings insert tags /wp-admin/options-general.php?page=inserttags | 3.19 | 30.64 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by insert tags
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.58 ▼0.79 | 1.69 ▼0.45 | 41.66 ▼1.97 |
Dashboard /wp-admin | 2,210 ▲22 | 4.83 ▼0.08 | 109.72 ▲3.04 | 38.02 ▼8.11 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▲0.00 | 39.92 ▲1.54 | 35.39 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,536 ▲19 | 23.11 ▲5.52 | 601.57 ▼36.90 | 54.58 ▲4.77 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.00 | 99.53 ▼0.08 | 42.61 ▼1.90 |
settings insert tags /wp-admin/options-general.php?page=inserttags | 689 | 1.53 | 6.66 | 17.77 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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=inserttags
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/insert-tags/inserttags.php on line 62 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/insert-tags/inserttags.php(62): do_settings_fields()
#1 wp-includes/class-wp-hook.php(310): inserttags->inserttags_option_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
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
Please 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/insert-tags/inserttags.php:30
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Requires at least: The plugin version is formatted incorrectly
- Contributors: Contributors not specified
insert-tags/inserttags.php 92% from 13 tests
The entry point to "insert tags" version 0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("insert-tags.php" instead of "inserttags.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
Good job! No executable or dangerous file extensions detected92 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 26 | 92 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 22.22% |
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
4 PNG files occupy 0.29MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
post.png | 77.98KB | 30.74KB | ▼ 60.58% |
activated.png | 80.47KB | 33.04KB | ▼ 58.94% |
settings.png | 59.29KB | 23.78KB | ▼ 59.90% |
install.png | 82.86KB | 33.87KB | ▼ 59.13% |