Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲0.52ms] Passed 4 tests
Server-side resources used by Ghost Tags
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.71 ▲0.15 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.30 ▼3.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.88 ▲0.95 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.46 ▲4.50 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.67 ▲4.91 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_widget_ghosttags |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ghost Tags
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.60 ▼1.01 | 9.03 ▲7.21 | 38.10 ▼6.59 |
Dashboard /wp-admin | 2,206 ▲35 | 4.85 ▼0.07 | 100.27 ▲0.25 | 44.25 ▼1.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 38.94 ▲2.57 | 35.42 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.27 ▲0.35 | 645.16 ▼18.15 | 57.08 ▼6.20 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▼0.01 | 97.09 ▼4.92 | 41.71 ▼0.70 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_widget_ghosttags
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ghost-tags/ghost-tags.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ghost-tags ===
) - Screenshots: These screenshots require images: #1 (/trunk/screenshots/screenshot-1.png), #2 (/trunk/screenshots/screenshot-2.png), #3 (/trunk/screenshots/screenshot-3.png), #4 (/trunk/screenshots/screenshot-4.png), #5 (/trunk/screenshots/screenshot-5.png), #6 (/trunk/screenshots/screenshot-6.png)
- Requires at least: Version format is invalid
ghost-tags/ghost-tags.php Passed 13 tests
Analyzing the main PHP file in "Ghost Tags" version 1.5
24 characters long description:
Display Tags as a Widget
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
No dangerous file extensions were detected161 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 9 | 0 | 65 |
PHP | 1 | 30 | 30 | 63 |
JavaScript | 1 | 22 | 2 | 33 |
PHP code Passed 2 tests
Analyzing 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.08 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.26MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-2.png | 203.53KB | 91.43KB | ▼ 55.08% |
screenshots/screenshot-1.png | 62.89KB | 33.54KB | ▼ 46.67% |