84% mp6-light

Code Review | MP6 Light

WordPress plugin MP6 Light scored 84% from 54 tests.

About plugin

  • Plugin page: mp6-light
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Jul 21, 2013
  • Latest release: Jul 28, 2013
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: BandonRandon (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 4,267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.24MB] [CPU: ▼17.44ms] Passed 4 tests

A check of server-side resources used by MP6 Light
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.64 ▼1.91
Dashboard /wp-admin3.06 ▼0.2429.19 ▼17.54
Posts /wp-admin/edit.php3.20 ▼0.1633.77 ▼16.30
Add New Post /wp-admin/post-new.php5.44 ▼0.4574.31 ▼28.61
Media Library /wp-admin/upload.php3.13 ▼0.1027.25 ▼7.31

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for MP6 Light
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.20 ▼1.171.79 ▼0.4144.94 ▼4.30
Dashboard /wp-admin2,210 ▲225.83 ▲0.9295.51 ▼10.4640.55 ▼4.76
Posts /wp-admin/edit.php2,095 ▲32.04 ▲0.0439.99 ▲0.1335.73 ▲1.05
Add New Post /wp-admin/post-new.php1,544 ▲2423.41 ▲0.08614.19 ▼17.3160.68 ▲3.47
Media Library /wp-admin/upload.php1,395 ▲74.23 ▼0.0194.31 ▼1.5544.06 ▲1.45

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mp6-light/mp6-light.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: iteration

mp6-light/mp6-light.php Passed 13 tests

The main PHP file in "MP6 Light" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
99 characters long description:
This is a plugin changes the default styles of MP6 to a lighter theme. MP6 plugin is also required.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,441 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1348341,421
PHP1113320

PHP code Passed 2 tests

An short overview of 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.57
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin