84% mixlr-shortcode

Code Review | Mixlr Shortcode

WordPress plugin Mixlr Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: mixlr-shortcode
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6
  • WordPress version: 6.3.1
  • First release: Sep 9, 2013
  • Latest release: Sep 9, 2013
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: mrgeorgegray (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /17,221 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼9.17ms] Passed 4 tests

This is a short check of server-side resources used by Mixlr Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.02 ▼1.12
Dashboard /wp-admin3.31 ▼0.0343.67 ▼21.75
Posts /wp-admin/edit.php3.36 ▲0.0146.31 ▼0.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.81 ▼13.58
Media Library /wp-admin/upload.php3.24 ▲0.0135.62 ▲1.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Mixlr Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.301.81 ▲0.2444.73 ▲1.70
Dashboard /wp-admin2,195 ▲175.51 ▼0.1485.45 ▼22.8736.22 ▼22.21
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0239.41 ▼2.2036.48 ▼0.41
Add New Post /wp-admin/post-new.php1,534 ▲618.22 ▼4.91629.56 ▼0.9768.61 ▲5.51
Media Library /wp-admin/upload.php1,400 ▲34.19 ▲0.02100.90 ▲2.0641.71 ▼7.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/mixlr-shortcode/mixlr-shortcode.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
  • Screenshots: Add images for these screenshots: #1 (Large Mixlr player), #2 (Medium Mixlr player), #3 (Small Mixlr player), #4 (Creating a player)
Please take inspiration from this readme.txt

mixlr-shortcode/mixlr-shortcode.php Passed 13 tests

The principal PHP file in "Mixlr Shortcode" v. 1.0.1 is loaded by WordPress automatically on each request
110 characters long description:
Converts Mixlr WordPress shortcodes to an embeddable player. [mixlr]http://mixlr.com/BROADCASTER/embed[/mixlr]

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
No dangerous file extensions were detected15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151315

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for 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
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png14.37KB8.86KB▼ 38.36%
screenshot-2.png50.23KB20.00KB▼ 60.18%
screenshot-3.png10.24KB6.75KB▼ 34.12%
screenshot-1.png90.13KB34.56KB▼ 61.66%