Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.17MB] [CPU: ▲0.14ms] Passed 4 tests
An overview of server-side resources used by Highlight and Share – Click to Tweet Block and Text Highlighter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.67 ▲1.21 | 49.28 ▲5.43 |
Dashboard /wp-admin | 4.46 ▲1.16 | 53.26 ▲0.65 |
Posts /wp-admin/edit.php | 4.52 ▲1.16 | 51.72 ▲1.42 |
Add New Post /wp-admin/post-new.php | 7.14 ▲1.25 | 98.50 ▼6.93 |
Media Library /wp-admin/upload.php | 4.38 ▲1.15 | 42.93 ▲6.48 |
Highlight and Share /wp-admin/options-general.php?page=highlight-and-share | 4.30 | 36.55 |
Server storage [IO: ▲8.99MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 214 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
highlight-and-share-theme-options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
highlight-and-share-block-editor-options |
highlight-and-share-email-settings |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Highlight and Share – Click to Tweet Block and Text Highlighter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,006 ▲260 | 14.79 ▲0.34 | 3.76 ▲1.80 | 39.10 ▼8.06 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼1.01 | 107.88 ▼9.00 | 44.74 ▲0.50 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.02 ▼0.01 | 39.72 ▲1.74 | 34.58 ▲1.97 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,667 | 19.44 ▼3.92 | 897.87 ▲212.45 | 55.38 ▲1.94 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.16 ▼0.06 | 95.73 ▼19.88 | 43.50 ▼7.19 |
Highlight and Share /wp-admin/options-general.php?page=highlight-and-share | 1,393 | 5.77 | 181.16 | 58.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function DLXPlugins\\HAS\\add_action() in wp-content/plugins/highlight-and-share/highlight-and-share.php:94
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: highlight, highlight text, click share, social media, select text
highlight-and-share/highlight-and-share.php Passed 13 tests
This is the main PHP file of "Highlight and Share – Click to Tweet Block and Text Highlighter" version 4.5.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
86 characters long description:
Select text, inline highlight, or use a Click to Share block and show social networks.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin17,067 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 27 | 0 | 0 | 9,208 |
PHP | 24 | 675 | 1,602 | 4,080 |
CSS | 16 | 173 | 139 | 3,080 |
JSON | 2 | 0 | 0 | 683 |
JavaScript | 14 | 0 | 11 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 32.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 79 | 50.97% |
▷ Public methods | 146 | 94.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 5.81% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
14 PNG files occupy 0.47MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/plugin-logo-horizontal.png | 29.44KB | 14.06KB | ▼ 52.25% |
img/screenshot-green.png | 21.12KB | 9.93KB | ▼ 52.98% |
img/screenshot-white.png | 24.61KB | 11.42KB | ▼ 53.60% |
img/heart.png | 3.44KB | 1.63KB | ▼ 52.56% |
img/screenshot-brand.png | 27.28KB | 12.56KB | ▼ 53.95% |