10% mad-mimi

Code Review | Mad Mimi for WordPress

WordPress plugin Mad Mimi for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: mad-mimi
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.7
  • WordPress version: 6.3.1
  • First release: Mar 3, 2010
  • Latest release: Oct 26, 2013
  • Number of updates: 47
  • Update frequency: every 28.4 days
  • Top authors: katzwebdesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /23,209 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/mad-mimi/mad-mimi.php+621
    syntax error, unexpected end of file

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

This is a short check of server-side resources used by Mad Mimi for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.98 ▼0.89
Dashboard /wp-admin3.31 ▲0.0044.35 ▼4.92
Posts /wp-admin/edit.php3.36 ▲0.0048.58 ▼1.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.33 ▼4.21
Media Library /wp-admin/upload.php3.23 ▲0.0035.13 ▲3.32

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Mad Mimi for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.13 ▼1.411.67 ▼0.2241.44 ▼1.63
Dashboard /wp-admin2,206 ▲185.88 ▲0.97107.33 ▼0.7343.65 ▲1.34
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0039.93 ▼2.7035.54 ▲0.57
Add New Post /wp-admin/post-new.php1,536 ▲823.07 ▲3.89656.33 ▲43.3655.29 ▲3.62
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.08101.66 ▲3.6443.94 ▲0.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/mad-mimi/mad-mimi.php on line 621
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mad-mimi/madmimi-widget.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (How the widget appears in the Widgets panel), #2 (How the signup form appears in the sidebar of a site using the twentyten theme), #3 (How submissions appear on the Mad Mimi Audience page)
You can look at the official readme.txt

mad-mimi/mad-mimi.php Passed 13 tests

The entry point to "Mad Mimi for WordPress" version 1.5.1 is a PHP file that has certain tags in its header comment area
53 characters long description:
Add a Mad Mimi signup form to your WordPress website.

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 detected1,178 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP218769771
PO File3139138407

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity103.50
▷ Minimum class complexity86.00
▷ Maximum class complexity121.00
Average method complexity5.92
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods40
▷ Static methods12.50%
▷ Public methods3997.50%
▷ Protected methods00.00%
▷ Private methods12.50%
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

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