74% the-sixtyseven-song-requester

Code Review | The sixtyseven song requester plugin

WordPress plugin The sixtyseven song requester plugin scored 74% from 53 tests.

About plugin

  • Plugin page: the-sixtyseven-so...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-5.3
  • WordPress version: 5.8.1
  • First release: Apr 20, 2018
  • Latest release: Oct 24, 2019
  • Number of updates: 25
  • Update frequency: every 27.6 days
  • Top authors: sixtyseven (100%)

Code review

53 tests

User reviews

1 review

Install metrics

50+ active / 990 total downloads

Benchmarks

Plugin footprint 65% 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.11MB] [CPU: ▼576.54ms] Passed 4 tests

An overview of server-side resources used by The sixtyseven song requester plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1930.90 ▲8.04
Dashboard /wp-admin3.15 ▲0.1045.11 ▲8.02
Posts /wp-admin/edit.php3.27 ▲0.1643.36 ▲3.93
Add New Post /wp-admin/post-new.php5.52 ▲0.0992.91 ▼2,311.76
Media Library /wp-admin/upload.php3.10 ▲0.0932.92 ▼6.33
About /wp-admin/admin.php?page=ss_song_requester_admin_about3.0731.44
Demo data /wp-admin/admin.php?page=ss_song_requester_admin_demo3.0726.31
Current requests /wp-admin/admin.php?page=ss_song_requester_admin3.0829.85
Settings /wp-admin/admin.php?page=ss_song_requester_admin_settings3.0732.58

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 59 new files
Database: 1 new table, no new options
New tables
wp_ss_song_requester_current_requests

Browser metrics Passed 4 tests

Checking browser requirements for The sixtyseven song requester plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,714 ▲10915.79 ▼0.137.54 ▼0.1145.88 ▼1.54
Dashboard /wp-admin2,971 ▲1215.94 ▼0.04139.12 ▲4.57107.65 ▲12.10
Posts /wp-admin/edit.php2,747 ▲412.68 ▼0.0166.07 ▲2.7989.22 ▼6.28
Add New Post /wp-admin/post-new.php1,880 ▲2718.74 ▼0.35370.67 ▲8.21103.77 ▼6.90
Media Library /wp-admin/upload.php1,816 ▲415.01 ▲0.01155.85 ▲13.35116.02 ▼12.05
About /wp-admin/admin.php?page=ss_song_requester_admin_about1,1094.1776.1878.06
Demo data /wp-admin/admin.php?page=ss_song_requester_admin_demo1,5154.3477.6861.10
Current requests /wp-admin/admin.php?page=ss_song_requester_admin1,4723.8363.7182.49
Settings /wp-admin/admin.php?page=ss_song_requester_admin_settings1,7614.8089.34106.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/the-sixtyseven-song-requester/uninstall.php+24
    Trying to access array offset on value of type bool
  • Zombie tables were found after uninstall: 1 table
    • wp_ss_song_requester_current_requests

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/the-sixtyseven-song-requester/includes/class-ss_song_requester-list-table.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
No tags were detected

the-sixtyseven-song-requester/ss_song_requester.php 85% from 13 tests

The main file in "The sixtyseven song requester plugin" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("the-sixtyseven-song-requester.php" instead of "ss_song_requester.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin5,306 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP147001,1492,287
PO File25406621,664
JavaScript52722591,062
CSS3429280
SVG11013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity31.50
▷ Minimum class complexity1.00
▷ Maximum class complexity124.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods116
▷ Static methods2017.24%
▷ Public methods10590.52%
▷ Protected methods00.00%
▷ Private methods119.48%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/badge.png17.60KB9.24KB▼ 47.50%
admin/img/help-sidebar-logo.png4.20KB2.71KB▼ 35.45%
assets/icon-128x128.png9.72KB4.58KB▼ 52.89%
assets/icon-256x256.png12.23KB5.86KB▼ 52.12%