84% mmm-unity-loader

Code Review | Mmm Unity Loader

WordPress plugin Mmm Unity Loader scored84%from 54 tests.

About plugin

  • Plugin page: mmm-unity-loader
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Feb 12, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: MManifesto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,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: ▼0.01MB] [CPU: ▼10.71ms] Passed 4 tests

Analyzing server-side resources used by Mmm Unity Loader
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0037.05 ▼10.64
Dashboard /wp-admin3.35 ▼0.0451.45 ▼19.58
Posts /wp-admin/edit.php3.40 ▲0.0049.57 ▼1.66
Add New Post /wp-admin/post-new.php5.93 ▲0.0085.56 ▼10.96
Media Library /wp-admin/upload.php3.27 ▲0.0037.89 ▲4.91

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mmm Unity Loader
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.45 ▼0.081.75 ▲0.0241.65 ▼2.78
Dashboard /wp-admin2,195 ▲155.54 ▼0.1384.10 ▼7.7238.25 ▼3.93
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0739.07 ▼1.4835.89 ▼1.17
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▼0.12662.11 ▲40.9657.01 ▲7.45
Media Library /wp-admin/upload.php1,403 ▲64.06 ▼0.06109.73 ▲6.5246.71 ▼1.36

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mmm-unity-loader/mmm-unity-loader.php:56

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: unity loader, unity, shortcode, unity player

mmm-unity-loader/mmm-unity-loader.php 92% from 13 tests

"Mmm Unity Loader" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected38 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101038

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected