84% easy-mixitup

Code Review | Easy Mixitup

WordPress plugin Easy Mixitup scored 84% from 54 tests.

About plugin

  • Plugin page: easy-mixitup
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2021
  • Latest release: Dec 29, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: invaderB (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.83ms] Passed 4 tests

A check of server-side resources used by Easy Mixitup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.99 ▼4.36
Dashboard /wp-admin3.31 ▲0.0044.12 ▼4.11
Posts /wp-admin/edit.php3.36 ▲0.0046.02 ▲2.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.64 ▼5.90
Media Library /wp-admin/upload.php3.23 ▲0.0035.88 ▼0.95

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Easy Mixitup
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.36 ▼1.244.96 ▲2.6840.77 ▼11.67
Dashboard /wp-admin2,206 ▲155.91 ▲0.80104.00 ▼0.8238.77 ▲2.83
Posts /wp-admin/edit.php2,089 ▲32.03 ▼0.0038.65 ▲4.1436.16 ▲2.23
Add New Post /wp-admin/post-new.php1,528 ▼623.29 ▲0.18620.89 ▼37.1445.27 ▼13.60
Media Library /wp-admin/upload.php1,385 ▼34.17 ▼0.0398.14 ▼4.2842.27 ▼3.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-mixitup/easy-mixitup.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-mixitup/inc/shortcode.php:90

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: animated, filter, sort, portfolio

easy-mixitup/easy-mixitup.php 85% from 13 tests

The primary PHP file in "Easy Mixitup" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0.0" instead of "5.2")
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.0.0" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin159 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2143090
CSS19057
JavaScript201512

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Constants2
▷ Global constants2100.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