74% albumreviewer

Code Review | Album Reviewer

WordPress plugin Album Reviewer scored 74% from 53 tests.

About plugin

  • Plugin page: albumreviewer
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.3
  • WordPress version: 5.8.1
  • First release: Oct 9, 2015
  • Latest release: Oct 16, 2015
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: ed atrero (100%)

Code review

53 tests

User reviews

7 reviews

Install metrics

40+ active / 1,796 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Album Reviewer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.14 ▲0.4235.66 ▲14.48
Dashboard /wp-admin3.45 ▲0.3947.18 ▲5.34
Posts /wp-admin/edit.php3.50 ▲0.3953.81 ▲11.93
Add New Post /wp-admin/post-new.php5.73 ▲0.30112.41 ▼1,012.42
Media Library /wp-admin/upload.php3.31 ▲0.3036.17 ▼5.56
Settings /wp-admin/edit.php?post_type=pp_album&page=album-reviewer-settings-menu3.3240.23
New Album Review /wp-admin/post-new.php?post_type=pp_album3.4677.90
All Album Reviews /wp-admin/edit.php?post_type=pp_album3.4538.19

Server storage [IO: ▲2.20MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 65 new files
Database: 2 new tables, 4 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Album Reviewer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,917 ▲33517.45 ▲1.958.59 ▲0.8550.27 ▲4.61
Dashboard /wp-admin3,191 ▲3387.99 ▲2.16157.39 ▲26.00102.86 ▲5.36
Posts /wp-admin/edit.php2,970 ▲2644.13 ▲1.4483.42 ▲17.2497.01 ▲8.21
Add New Post /wp-admin/post-new.php2,066 ▲20919.23 ▲0.07335.82 ▼36.41110.01 ▲3.12
Media Library /wp-admin/upload.php1,743 ▼294.73 ▼0.26116.50 ▼37.61111.65 ▼2.24
Settings /wp-admin/edit.php?post_type=pp_album&page=album-reviewer-settings-menu1,4853.9978.6467.31
New Album Review /wp-admin/post-new.php?post_type=pp_album2,2945.55112.3766.60
All Album Reviews /wp-admin/edit.php?post_type=pp_album1,6374.0579.3566.75

Uninstaller [IO: ▲0.02MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_pp_album_review2_page_table
    • wp_pp_album_review2_comment_table
  • Zombie WordPress options detected upon uninstall: 4 options
    • pp_album_review_notify_msg_to_client
    • pp_album_review_notify_msg_to_client2
    • pp_album_activiated
    • pp_album_review_ast

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
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/albumreviewer/admin/partials/album-reviewer-admin-display.php
    • > /wp-content/plugins/albumreviewer/public/partials/album-reviewer-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: client proofing, portrait photography, photography proofing, album reviewer, wedding albums...

albumreviewer/ppp-album-reviewer2.php 85% from 13 tests

"Album Reviewer" version 2.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("albumreviewer.php" instead of "ppp-album-reviewer2.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
There were no executable files found in this plugin15,107 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity12.80
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
▷ Static methods45.63%
▷ Public methods5374.65%
▷ Protected methods00.00%
▷ Private methods1825.35%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/speech_bubble_right_2.png3.71KB1.20KB▼ 67.63%
public/img/speech_bubble_left_2.png5.17KB0.72KB▼ 85.97%