Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.69MB] [CPU: ▼49.43ms] Passed 4 tests
An overview of server-side resources used by Random Joke (Bdihot.co.il)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.16 | 10.43 ▼30.46 |
Dashboard /wp-admin | 2.32 ▼0.98 | 11.94 ▼41.50 |
Posts /wp-admin/edit.php | 2.32 ▼1.04 | 12.93 ▼38.50 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.57 | 11.64 ▼87.27 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 11.05 ▼25.98 |
Server storage [IO: ▲0.40MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_bdihot_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Random Joke (Bdihot.co.il): an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲92 | 14.26 ▼0.10 | 1.90 ▲0.01 | 41.92 ▼4.37 |
Dashboard /wp-admin | 2,231 ▲63 | 5.60 ▼0.01 | 91.69 ▲1.09 | 43.08 ▼3.35 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.94 ▼0.05 | 38.86 ▼7.82 | 35.38 ▼4.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.02 ▼0.12 | 669.67 ▲4.28 | 56.60 ▲2.87 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.12 ▼0.06 | 101.02 ▼10.92 | 45.43 ▼5.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/bdihot/bdihot.php+123
Use of undefined constant bdihot - assumed 'bdihot' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_bdihot_widget
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/bdihot/bdihot.php:15
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: bdihot, humor, sidebar, jokes, rtl...
bdihot/bdihot.php Passed 13 tests
The principal PHP file in "Random Joke (Bdihot.co.il)" v. 0.4 is loaded by WordPress automatically on each request
124 characters long description:
This plugin allows you to add a random joke (from bdihot.co.il) using wordpress Sidebar-Widget and Dashboard-Widget systems.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin145 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 38 | 38 | 118 |
PO File | 1 | 8 | 12 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.39MB with 0.23MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 378.99KB | 134.81KB | ▼ 64.43% |
screenshot-2.png | 8.30KB | 3.73KB | ▼ 55.05% |
screenshot-1.png | 11.27KB | 4.95KB | ▼ 56.11% |