Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.24ms] Passed 4 tests
An overview of server-side resources used by SmartAss Highlighter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.50 ▼4.02 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.95 ▼4.18 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.12 ▲3.10 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 78.96 ▼11.86 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.01 ▲4.02 |
SmartAss Highlighter /wp-admin/options-general.php?page=smartass-highlighter/SmartAss-Highlighter-admin.php | 3.22 | 29.52 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SmartAss Highlighter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 14.79 ▲0.12 | 1.90 ▲0.07 | 43.72 ▼0.57 |
Dashboard /wp-admin | 2,215 ▲27 | 5.83 ▲0.96 | 112.17 ▼2.32 | 42.14 ▼2.70 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▼0.01 | 34.19 ▼1.37 | 35.56 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,540 ▼3 | 23.31 ▲5.11 | 646.73 ▲17.38 | 53.31 ▼10.27 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.21 ▼0.01 | 93.70 ▼10.61 | 40.88 ▼2.37 |
SmartAss Highlighter /wp-admin/options-general.php?page=smartass-highlighter/SmartAss-Highlighter-admin.php | 856 | 2.03 | 24.09 | 37.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/smartass-highlighter/SmartAss-Highlighter.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smartass-highlighter/SmartAss-Highlighter-admin.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Visual editor screenshot), #2 (Text only editor screenshot), #3 (Sample highlighted output with line numbers), #4 (Sample highlighted output without line numbers), #5 (Code button)
- Tags: There are too many tags (26 tag instead of maximum 10)
smartass-highlighter/SmartAss-Highlighter.php 85% from 13 tests
The principal PHP file in "SmartAss Highlighter" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smartass-highlighter.php" instead of "SmartAss-Highlighter.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 351 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin212 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 28 | 134 |
CSS | 1 | 0 | 0 | 54 |
JavaScript | 2 | 1 | 4 | 24 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 5.80KB | 3.88KB | ▼ 33.09% |
screenshot-1.png | 8.97KB | 5.12KB | ▼ 42.94% |
screenshot-3.png | 6.64KB | 4.33KB | ▼ 34.81% |
highlighter.png | 0.64KB | 0.83KB | 0.00% |
screenshot.png | 10.66KB | 5.52KB | ▼ 48.22% |