93% divx-web-player-generator

Code Review | DivX Web Player Generator

WordPress plugin DivX Web Player Generator scored 93% from 53 tests.

About plugin

  • Plugin page: divx-web-player-g...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9+
  • WordPress version: 5.8.1
  • First release: May 4, 2014
  • Latest release: May 4, 2014
  • Number of updates: 11
  • Update frequency: every 4.2 days
  • Top authors: ipapine (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 1,046 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼264.10ms] Passed 4 tests

Analyzing server-side resources used by DivX Web Player Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0240.20 ▲4.79
Dashboard /wp-admin3.08 ▲0.0348.52 ▲14.05
Posts /wp-admin/edit.php3.13 ▲0.0346.83 ▲3.46
Add New Post /wp-admin/post-new.php5.45 ▲0.0290.55 ▼1,056.56
Media Library /wp-admin/upload.php3.02 ▲0.0233.87 ▼8.10

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by DivX Web Player Generator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,667 ▲8516.00 ▲0.528.80 ▼0.3748.40 ▼2.56
Dashboard /wp-admin2,942 ▲925.91 ▲0.09139.08 ▼2.96139.70 ▲30.59
Posts /wp-admin/edit.php2,726 ▲202.58 ▼0.1167.77 ▼1.0698.10 ▲2.65
Add New Post /wp-admin/post-new.php1,590 ▼6618.51 ▲2.73404.70 ▲34.24117.18 ▼8.45
Media Library /wp-admin/upload.php1,732 ▼404.99 ▼0.00139.83 ▼16.25130.80 ▲5.80

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
Even though everything seems fine, this is not 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/divx-web-player-generator/dvix-generator.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: Contributors not specified
  • Screenshots: Add an image for screenshot #1 (generator page.)
The official readme.txt is a good inspiration

divx-web-player-generator/dvix-generator.php 85% from 13 tests

The main PHP file in "DivX Web Player Generator" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("divx-web-player-generator.php" instead of "dvix-generator.php")
  • Description: The description should be shorter than 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin154 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.46KB0.54KB▼ 63.19%
screenshot-4.png128.24KB35.26KB▼ 72.51%
screenshot-2.png49.13KB20.61KB▼ 58.06%
screenshot-3.png62.26KB22.38KB▼ 64.05%
screenshot-1.png54.26KB18.78KB▼ 65.38%