Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.58ms] Passed 4 tests
Analyzing server-side resources used by LH Browser Shots
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.43 ▼10.57 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.71 ▼6.29 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.91 ▼2.29 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.15 ▼3.18 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.76 ▲3.06 |
Add browser shot /wp-admin/upload.php?page=lh-browser-shots/lh-browser-shots.php | 3.23 | 30.45 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LH Browser Shots
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.14 ▼1.14 | 1.74 ▲0.00 | 47.85 ▲3.99 |
Dashboard /wp-admin | 2,213 ▲24 | 5.86 ▲0.95 | 103.43 ▼16.55 | 41.75 ▼3.29 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.01 | 39.11 ▲3.45 | 34.96 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,522 ▼14 | 23.22 ▼0.06 | 629.44 ▼55.98 | 55.76 ▼4.59 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.17 ▼0.06 | 94.32 ▼10.72 | 42.99 ▲2.27 |
Add browser shot /wp-admin/upload.php?page=lh-browser-shots/lh-browser-shots.php | 802 | 2.05 | 23.86 | 26.37 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-browser-shots/lh-browser-shots.php:224
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lh-browser-shots/partials/upload.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
lh-browser-shots/lh-browser-shots.php 92% from 13 tests
The main PHP file in "LH Browser Shots" ver. 2.00 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin358 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 344 | 51 | 358 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 24 | |
▷ Static methods | 19 | 79.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin