10% mowplayer

Code Review | Mowplayer

WordPress plugin Mowplayer scored10%from 54 tests.

About plugin

  • Plugin page: mowplayer
  • Plugin version: 5.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 8, 2018
  • Latest release: May 13, 2021
  • Number of updates: 54
  • Update frequency: every 18.7 days
  • Top authors: supportmowplayer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,731 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/mowplayer/functions.php+87
    Trying to get property 'autoreplace' of non-object

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.58ms] Passed 4 tests

An overview of server-side resources used by Mowplayer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.10 ▼1.54
Dashboard /wp-admin3.36 ▲0.0647.37 ▼4.83
Posts /wp-admin/edit.php3.41 ▲0.0651.03 ▲3.93
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.30 ▼16.37
Media Library /wp-admin/upload.php3.28 ▲0.0534.80 ▲0.41

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please try to fix the following items
  • There were 1 file (1.64KB) illegally modified outside of "wp-content/plugins/mowplayer/" and "wp-content/uploads/"
    • (new file) ads.txt
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables
wp_mowplayer_settings
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Mowplayer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.99 ▼0.3437.05 ▲34.8847.05 ▼1.94
Dashboard /wp-admin2,228 ▲434.98 ▼0.89108.31 ▼9.7967.41 ▲24.32
Posts /wp-admin/edit.php2,111 ▲191.99 ▲0.0238.99 ▼0.1137.04 ▲4.64
Add New Post /wp-admin/post-new.php6,266 ▲4,72420.18 ▲2.12868.64 ▲240.5240.29 ▼9.47
Media Library /wp-admin/upload.php1,410 ▲194.08 ▼0.14109.70 ▲11.1442.48 ▼0.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/mowplayer/functions.php on line 84
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/mowplayer/bkp-functions.php on line 111
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/mowplayer/bkp-functions.php:113
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/mowplayer/settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/mowplayer/functions.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/mowplayer/mow.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
3 plugin tags: mowplayer, video ads, monetization

mowplayer/mow.php 92% from 13 tests

The primary PHP file in "Mowplayer" version 5.1.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mowplayer.php" instead of "mow.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin904 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP7151255432
JavaScript26325253
Markdown161085
SVG30069
CSS2112065

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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 functions1794.44%
▷ Anonymous functions15.56%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png1.66KB0.93KB▼ 44.01%
assets/icon-128x128.png4.99KB2.89KB▼ 42.11%
assets/mow-logo-new.png1.94KB1.53KB▼ 21.30%
(invalid) assets/mow-logo-128x128.png3.04KB0.00KB▼ 100.00%
(invalid) assets/mow-logo.png3.27KB0.00KB▼ 100.00%