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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.91ms] Passed 4 tests
A check of server-side resources used by Mooberry Book Manager Image Fixer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.64 ▼3.43 |
Dashboard /wp-admin | 3.31 ▲0.00 | 54.81 ▼0.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 56.79 ▲1.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.63 ▼13.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 43.08 ▲6.56 |
Book Manager Image Fixer /wp-admin/tools.php?page=mbdbif_settings | 3.01 | 26.86 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
mbdbif_version |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Mooberry Book Manager Image Fixer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.24 ▼0.13 | 1.97 ▲0.09 | 44.40 ▲3.49 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▲0.04 | 92.02 ▲1.62 | 40.46 ▼3.28 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.05 | 39.83 ▼1.41 | 36.85 ▼3.38 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▼0.19 | 689.91 ▲60.55 | 50.49 ▼11.53 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▲0.03 | 106.07 ▼5.66 | 49.01 ▲2.23 |
Book Manager Image Fixer /wp-admin/tools.php?page=mbdbif_settings | 28 | 0.42 | 0.09 | 4.42 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- mbdbif_version
- db_upgraded
Smoke tests 50% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please 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 plugin_dir_path() in wp-content/plugins/mooberry-book-manager-image-fixer/mooberry-book-manager-image-fixer.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/tools.php?page=mbdbif_settings
- > Network (severe)
wp-admin/tools.php?page=mbdbif_settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: mooberry book manager
mooberry-book-manager-image-fixer/mooberry-book-manager-image-fixer.php Passed 13 tests
Analyzing the main PHP file in "Mooberry Book Manager Image Fixer" version 1.3
101 characters long description:
Fixes broken retailer, format, goodreads, and placeholder book cover images in Mooberry Book Manager.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin300 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 97 | 80 | 273 |
JavaScript | 1 | 6 | 0 | 20 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 20.27KB | 13.26KB | ▼ 34.59% |