79% mooberry-book-manager-image-fixer

Code Review | Mooberry Book Manager Image Fixer

WordPress plugin Mooberry Book Manager Image Fixer scored79%from 54 tests.

About plugin

  • Plugin page: mooberry-book-man...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.5
  • WordPress version: 6.3.1
  • First release: Dec 6, 2015
  • Latest release: Apr 23, 2016
  • Number of updates: 11
  • Update frequency: every 12.6 days
  • Top authors: mooberrydreams (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,584 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.64 ▼3.43
Dashboard /wp-admin3.31 ▲0.0054.81 ▼0.18
Posts /wp-admin/edit.php3.36 ▲0.0056.79 ▲1.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.63 ▼13.61
Media Library /wp-admin/upload.php3.23 ▲0.0043.08 ▲6.56
Book Manager Image Fixer /wp-admin/tools.php?page=mbdbif_settings3.0126.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.24 ▼0.131.97 ▲0.0944.40 ▲3.49
Dashboard /wp-admin2,195 ▲185.64 ▲0.0492.02 ▲1.6240.46 ▼3.28
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0539.83 ▼1.4136.85 ▼3.38
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▼0.19689.91 ▲60.5550.49 ▼11.53
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.03106.07 ▼5.6649.01 ▲2.23
Book Manager Image Fixer /wp-admin/tools.php?page=mbdbif_settings280.420.094.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP19780273
JavaScript16020
CSS1107

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 code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/screenshot-1.png20.27KB13.26KB▼ 34.59%