78% playerzbr

Code Review | Playerzbr

WordPress plugin Playerzbr scored78%from 54 tests.

About plugin

  • Plugin page: playerzbr
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6
  • WordPress version: 6.3.1
  • First release: Feb 26, 2013
  • Latest release: Aug 9, 2016
  • Number of updates: 82
  • Update frequency: every 15.4 days
  • Top authors: pedrolaxe (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

90+ active /14,805 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.66MB] [CPU: ▼19.03ms] Passed 4 tests

Analyzing server-side resources used by Playerzbr
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.82 ▼3.30
Dashboard /wp-admin3.35 ▲0.0052.88 ▼12.39
Posts /wp-admin/edit.php3.40 ▲0.0548.26 ▲0.64
Add New Post /wp-admin/post-new.php3.13 ▼2.7533.57 ▼61.06
Media Library /wp-admin/upload.php3.27 ▲0.0440.35 ▲1.23
Add New /wp-admin/post-new.php?post_type=playerzbr3.1337.88
All Players /wp-admin/edit.php?post_type=playerzbr3.3238.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Playerzbr
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲20213.61 ▼0.6813.59 ▲11.3642.21 ▲0.59
Dashboard /wp-admin2,248 ▲454.86 ▼0.01110.78 ▼6.6939.72 ▲0.10
Posts /wp-admin/edit.php2,134 ▲312.00 ▼0.0436.71 ▼3.3941.63 ▲4.15
Add New Post /wp-admin/post-new.php1,568 ▲2023.18 ▲0.20670.71 ▲58.3956.78 ▼10.05
Media Library /wp-admin/upload.php1,427 ▲304.20 ▼0.0099.17 ▼17.6240.71 ▼10.77
Add New /wp-admin/post-new.php?post_type=playerzbr1,4762.5352.7274.05
All Players /wp-admin/edit.php?post_type=playerzbr1,1081.9332.1040.77

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: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=playerzbr
    • > Notice in wp-content/plugins/playerzbr/playerzbr.php+239
    Undefined index: urlmeta

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/playerzbr/playerzbr.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

playerzbr/playerzbr.php Passed 13 tests

The entry point to "Playerzbr" version 1.6 is a PHP file that has certain tags in its header comment area
46 characters long description:
PlayerZBR is the best HTML5 responsive player.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin143 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101106141
CSS1001
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) screenshot-1.png6.72KB0.00KB▼ 100.00%