84% mmm-fancy-captcha

Code Review | MultiMediaMonster Fancy captcha

WordPress plugin MultiMediaMonster Fancy captcha scored 84% from 54 tests.

About plugin

  • Plugin page: mmm-fancy-captcha
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.1
  • WordPress version: 5.8.1
  • First release: Sep 13, 2015
  • Latest release: May 9, 2016
  • Number of updates: 19
  • Update frequency: every 14.1 days
  • Top authors: mmmrenske (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 712 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
Install script ran successfully

Server metrics [RAM: ▼0.66MB] [CPU: ▼170.55ms] Passed 4 tests

This is a short check of server-side resources used by MultiMediaMonster Fancy captcha
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.2434.53 ▲13.97
Dashboard /wp-admin2.98 ▼0.0727.85 ▼13.28
Posts /wp-admin/edit.php2.98 ▼0.1227.83 ▼18.40
Add New Post /wp-admin/post-new.php2.98 ▼2.4525.68 ▼637.43
Media Library /wp-admin/upload.php2.98 ▼0.0225.37 ▼13.10

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by MultiMediaMonster Fancy captcha
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,844 ▲24816.59 ▲1.0917.03 ▲7.3051.28 ▼5.31
Dashboard /wp-admin2,993 ▲625.94 ▲0.01142.91 ▼5.41137.22 ▲18.82
Posts /wp-admin/edit.php2,767 ▲282.69 ▲0.0065.17 ▼5.0594.24 ▼1.71
Add New Post /wp-admin/post-new.php1,639 ▼4421.19 ▲2.60266.90 ▼139.01116.64 ▲6.34
Media Library /wp-admin/upload.php1,776 ▼315.03 ▲0.02135.07 ▼31.27143.79 ▲16.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/mmm-fancy-captcha/classes/class-mmm-fc-settings.php+273
    Use of undefined constant MMM_FCP_PLUGIN_ID_SHORT - assumed 'MMM_FCP_PLUGIN_ID_SHORT' (this will throw an Error in a future version of PHP)

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mmm-fancy-captcha/multimediamonster-fancy-captcha.php:30

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: fancy, captcha

mmm-fancy-captcha/multimediamonster-fancy-captcha.php 85% from 13 tests

The primary PHP file in "MultiMediaMonster Fancy captcha" version 1.12 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mmm-fancy-captcha.php" instead of "multimediamonster-fancy-captcha.php")
  • Description: The description should be shorter than 140 characters (currently 237 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,548 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP869129722
CSS31258346
JavaScript52143264
PO File134131204
SVG20112

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods28100.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/fancy-captcha/item-0.png4.50KB1.64KB▼ 63.63%
images/fancy-captcha/item-2.png3.86KB0.85KB▼ 77.90%
images/fancy-captcha/item-x.png4.92KB1.70KB▼ 65.51%
images/fancy-captcha/item-4.png4.00KB1.20KB▼ 69.94%
images/fancy-captcha/item-1.png4.15KB1.37KB▼ 67.12%