89% simple-plyr

Code Review | Simple Plyr

WordPress plugin Simple Plyr scored89%from 54 tests.

About plugin

  • Plugin page: simple-plyr
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 17, 2018
  • Latest release: Jan 17, 2018
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: bestony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,364 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 gracefully, with no errors

Server metrics [RAM: ▼14.36MB] [CPU: ▼2,970,412.98ms] Passed 4 tests

A check of server-side resources used by Simple Plyr
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▼57.4036.10 ▼11,881,630.33
Dashboard /wp-admin3.36 ▼0.0351.56 ▼16.20
Posts /wp-admin/edit.php3.41 ▲0.0151.30 ▼1.84
Add New Post /wp-admin/post-new.php5.94 ▲0.0198.72 ▲0.48
Media Library /wp-admin/upload.php3.28 ▲0.0035.90 ▼3.56

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Plyr
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.10 ▼0.542.80 ▲1.2540.15 ▼1.49
Dashboard /wp-admin2,201 ▲245.63 ▼0.0884.16 ▼28.5738.81 ▼12.76
Posts /wp-admin/edit.php2,079 ▼242.00 ▲0.0539.34 ▼1.3235.67 ▼0.44
Add New Post /wp-admin/post-new.php1,539 ▲1318.15 ▼4.85690.19 ▼2.9079.23 ▲28.56
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0799.67 ▼28.5642.77 ▼7.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
1 plugin tags: player

simple-plyr/simple-plyr.php 85% from 13 tests

The principal PHP file in "Simple Plyr" v. 0.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected38 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102235
CSS1001
JavaScript1001
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin