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.10MB] [CPU: ▼1.85ms] Passed 4 tests
An overview of server-side resources used by Hashtag
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.33 ▼3.56 |
Dashboard /wp-admin | 3.39 ▲0.09 | 44.57 ▼2.19 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 53.19 ▲8.14 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 92.49 ▼3.49 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 34.38 ▲1.86 |
#Hashtag /wp-admin/options-general.php?page=hashtag-plugin-option | 3.28 | 30.94 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Hashtag
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.23 ▼1.08 | 4.54 ▲2.45 | 41.77 ▼6.10 |
Dashboard /wp-admin | 2,210 ▲22 | 4.82 ▼0.09 | 107.10 ▲2.30 | 41.85 ▼3.28 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.98 ▲0.01 | 39.90 ▲0.41 | 35.63 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.30 ▲0.19 | 599.87 ▼96.42 | 45.50 ▼10.45 |
Media Library /wp-admin/upload.php | 1,383 ▼5 | 4.16 ▼0.03 | 98.88 ▼7.83 | 40.57 ▼6.00 |
#Hashtag /wp-admin/options-general.php?page=hashtag-plugin-option | 864 | 1.75 | 29.20 | 26.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: hashtag, twitter, facebook, search
hashtag/hashtag.php Passed 13 tests
"Hashtag" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
115 characters long description:
Converts hashtag strings into clickable link in WordPress. If clicked it will search contents contain same hashtag.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin406 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 53 | 52 | 396 |
HTML | 1 | 3 | 0 | 9 |
JavaScript | 1 | 0 | 10 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 34.50 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 5.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-large.png | 3.67KB | 0.74KB | ▼ 79.87% |
options/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
images/icon-small.png | 3.12KB | 0.55KB | ▼ 82.28% |
options/images/icon-setting-large.png | 1.78KB | 1.44KB | ▼ 19.16% |
options/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |