84% sportspress-tv

Code Review | Legacy ePlayer

WordPress plugin Legacy ePlayer scored84%from 54 tests.

About plugin

  • Plugin page: sportspress-tv
  • Plugin version: 0.9.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Dec 4, 2014
  • Latest release: Feb 28, 2017
  • Number of updates: 17
  • Update frequency: every 48.3 days
  • Top authors: brianmiyaji (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /20,136 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼1.19ms] Passed 4 tests

Analyzing server-side resources used by Legacy ePlayer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2744.83 ▲2.10
Dashboard /wp-admin3.56 ▲0.2557.21 ▲5.11
Posts /wp-admin/edit.php3.67 ▲0.3157.22 ▲6.15
Add New Post /wp-admin/post-new.php6.16 ▲0.2792.53 ▼11.24
Media Library /wp-admin/upload.php3.48 ▲0.2536.86 ▼0.73
Legacy ePlayer /wp-admin/options-general.php?page=sportspress-tv3.4535.33

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 85 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_sportspress_tv
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Legacy ePlayer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.43 ▼0.839.58 ▲7.7041.27 ▲0.56
Dashboard /wp-admin2,203 ▲265.61 ▼0.0589.15 ▲3.5539.61 ▼3.80
Posts /wp-admin/edit.php2,108 ▲82.06 ▲0.0940.79 ▼0.3939.20 ▲4.61
Add New Post /wp-admin/post-new.php1,533 ▲523.27 ▲0.28669.68 ▲5.0747.29 ▼26.02
Media Library /wp-admin/upload.php1,405 ▲54.27 ▲0.0595.51 ▼36.4845.50 ▼13.35
Legacy ePlayer /wp-admin/options-general.php?page=sportspress-tv4,5492.0427.0928.82

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 detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_sportspress_tv

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class '_WP_Editors' not found in wp-content/plugins/sportspress-tv/assets/js/editor-lang.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sportspress-tv/includes/class-sportspress-tv-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sportspress-tv/includes/class-tgm-plugin-activation.php:1910

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: eplayer

sportspress-tv/sportspress-tv.php Passed 13 tests

The main PHP script in "Legacy ePlayer" version 0.9.9 is automatically included on every request by WordPress
99 characters long description:
The streaming service is no longer available, so this plugin will not be able to stream any videos.

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
Everything looks great! No dangerous files found in this plugin3,111 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP45521,6562,175
JSON800813
CSS112569
JavaScript411138
SVG10011
Bourne Shell1205

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity40.22
▷ Minimum class complexity1.00
▷ Maximum class complexity177.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods129
▷ Static methods64.65%
▷ Public methods10279.07%
▷ Protected methods2015.50%
▷ Private methods75.43%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin