84% album-cover-finder

Code Review | Album Cover Finder

WordPress plugin Album Cover Finder scored84%from 54 tests.

About plugin

  • Plugin page: album-cover-finder
  • Plugin version: 0.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.0
  • WordPress version: 6.3.1
  • First release: May 9, 2014
  • Latest release: Aug 29, 2023
  • Number of updates: 51
  • Update frequency: every 66.7 days
  • Top authors: urre (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,444 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.35ms] Passed 4 tests

A check of server-side resources used by Album Cover Finder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.48 ▼10.19
Dashboard /wp-admin3.35 ▲0.0453.65 ▼0.54
Posts /wp-admin/edit.php3.40 ▲0.0462.81 ▲10.05
Add New Post /wp-admin/post-new.php5.95 ▲0.07109.86 ▲9.21
Media Library /wp-admin/upload.php3.27 ▲0.0439.03 ▲0.12

Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Album Cover Finder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.34 ▼0.031.76 ▼0.0944.48 ▼0.56
Dashboard /wp-admin2,218 ▲415.67 ▲0.1488.43 ▼11.2345.56 ▲2.23
Posts /wp-admin/edit.php2,123 ▲232.01 ▼0.0344.91 ▲9.3040.19 ▲5.96
Add New Post /wp-admin/post-new.php6,302 ▲4,77419.06 ▼4.11832.24 ▲136.7955.24 ▼8.62
Media Library /wp-admin/upload.php1,420 ▲204.18 ▼0.0297.49 ▼13.9441.80 ▼4.84

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/album-cover-finder/parts/metabox.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/album-cover-finder/albumcoverfinder.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: music, album covers, albums, covers, sleeves...

album-cover-finder/albumcoverfinder.php 92% from 13 tests

The main file in "Album Cover Finder" v. 0.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("album-cover-finder.php" instead of "albumcoverfinder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin515 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File1191955

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png110.47KB36.01KB▼ 67.40%