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
Installer ran successfully
Server metrics [RAM: ▼7.73MB] [CPU: ▼1,591,904.61ms] Passed 4 tests
Server-side resources used by Just Highlight
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▼31.11 | 46.36 ▼6,367,593.93 |
Dashboard /wp-admin | 3.40 ▲0.05 | 52.49 ▼4.29 |
Posts /wp-admin/edit.php | 3.51 ▲0.11 | 48.94 ▼8.95 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.08 | 90.18 ▼11.26 |
Media Library /wp-admin/upload.php | 3.32 ▲0.05 | 40.00 ▼0.76 |
Just Highlight /wp-admin/options-general.php?page=just-highlight | 3.29 | 36.06 |
Server storage [IO: ▲5.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Just Highlight
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲158 | 13.72 ▼0.70 | 5.67 ▲3.96 | 43.73 ▲0.13 |
Dashboard /wp-admin | 2,224 ▲44 | 5.81 ▲0.21 | 92.15 ▲3.67 | 40.65 ▲3.35 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.30 ▲0.33 | 39.54 ▲2.18 | 32.93 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.72 ▲0.19 | 684.79 ▼41.51 | 36.59 ▼38.17 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.56 ▲0.35 | 114.07 ▲12.66 | 48.22 ▲1.36 |
Just Highlight /wp-admin/options-general.php?page=just-highlight | 1,045 | 2.49 | 39.95 | 26.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=just-highlight
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=just-highlight
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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
Almost there! Just 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/just-highlight/just-highlight.php:14
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: selection, select, highlighter, highlight, text highlight...
just-highlight/just-highlight.php 92% from 13 tests
Analyzing the main PHP file in "Just Highlight" version 1.0.3
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected406 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 21 | 199 |
JavaScript | 5 | 13 | 0 | 106 |
SVG | 1 | 0 | 0 | 82 |
CSS | 3 | 2 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 17 | |
▷ Named functions | 17 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 5.05MB with 2.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 522.05KB | 236.63KB | ▼ 54.67% |
assets/screenshot-6.png | 992.03KB | 497.93KB | ▼ 49.81% |
assets/icon.png | 66.69KB | 28.33KB | ▼ 57.51% |
images/highlight.png | 53.52KB | 15.98KB | ▼ 70.15% |
assets/screenshot-2.png | 619.88KB | 228.25KB | ▼ 63.18% |