Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.22ms] Passed 4 tests
Server-side resources used by Anchor Highlighter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 23.02 ▼21.53 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.23 ▼2.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.34 ▲2.13 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 92.58 ▲0.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.74 ▲2.58 |
Anchor Highlighter /wp-admin/options-general.php?page=anchor-highlighter | 3.25 | 31.64 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Anchor Highlighter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲186 | 13.66 ▼0.74 | 6.39 ▲4.66 | 40.85 ▼11.17 |
Dashboard /wp-admin | 2,211 ▲23 | 5.86 ▲0.94 | 109.01 ▼3.63 | 40.93 ▼6.69 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.04 ▲0.03 | 39.83 ▼0.71 | 35.03 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.20 ▲5.63 | 618.04 ▼47.99 | 64.02 ▲9.83 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.27 ▲0.04 | 99.52 ▲4.72 | 41.89 ▼1.14 |
Anchor Highlighter /wp-admin/options-general.php?page=anchor-highlighter | 795 | 2.04 | 26.94 | 21.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=anchor-highlighter
- > Notice in wp-content/plugins/anchor-highlighter/admin/partials/anchor-highlighter-admin-display.php+27
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/anchor-highlighter/public/partials/anchor-highlighter-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/anchor-highlighter/admin/partials/anchor-highlighter-admin-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Here you can see how the current selected option on the Archives widget is styled differently to the rest.)
- Plugin Name: Please specify the plugin name on the first line (
=== anchor-highlighter ===
)
anchor-highlighter/anchor-highlighter.php Passed 13 tests
The main PHP file in "Anchor Highlighter" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
Allows you to add a class to the anchors wich match the curren url so you can highlight them.
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
No dangerous file extensions were detected256 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 143 | 551 | 231 |
JavaScript | 3 | 25 | 101 | 25 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Screenshot-1.png | 162.33KB | 55.09KB | ▼ 66.07% |