84% playme

Code Review | PlayMe

WordPress plugin PlayMe scored84%from 54 tests.

About plugin

  • Plugin page: playme
  • Plugin version: 0.2.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Aug 24, 2018
  • Latest release: Feb 18, 2022
  • Number of updates: 7
  • Update frequency: every 182.0 days
  • Top authors: era404 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,738 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼4.25ms] Passed 4 tests

This is a short check of server-side resources used by PlayMe
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.33 ▼0.33
Dashboard /wp-admin3.32 ▼0.0244.11 ▼15.40
Posts /wp-admin/edit.php3.37 ▲0.0246.52 ▲3.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.93 ▼0.84
Media Library /wp-admin/upload.php3.24 ▲0.0236.89 ▼0.43

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_requests
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for PlayMe
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲12613.66 ▼0.898.36 ▲6.6943.44 ▼0.04
Dashboard /wp-admin2,207 ▲305.61 ▼0.0683.78 ▼15.1438.65 ▼3.47
Posts /wp-admin/edit.php2,109 ▲91.96 ▲0.0236.45 ▼1.1435.55 ▲0.49
Add New Post /wp-admin/post-new.php1,538 ▲1223.35 ▲0.25645.05 ▼12.7153.11 ▲3.68
Media Library /wp-admin/upload.php1,415 ▲154.19 ▲0.0596.00 ▼2.7444.12 ▼1.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/playme/playme.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
9 plugin tags: song, radio, listener, dj, deejay...

playme/playme.php Passed 13 tests

The main PHP script in "PlayMe" version 0.2.7 is automatically included on every request by WordPress
47 characters long description:
Embeddable Song Request Form for Radio Stations

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
Good job! No executable or dangerous file extensions detected631 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP14696301
CSS1215220
JavaScript22746110

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_img/paypal.png4.58KB2.06KB▼ 54.95%
_img/missing.png1.19KB0.21KB▼ 82.54%
_img/bulcclub.png2.74KB1.77KB▼ 35.19%