79% mythic-cerberus

Code Review | Mythic Cerberus

WordPress plugin Mythic Cerberus scored79%from 54 tests.

About plugin

  • Plugin page: mythic-cerberus
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2023
  • Latest release: Jul 10, 2023
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: mythic_beasts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.75ms] Passed 4 tests

An overview of server-side resources used by Mythic Cerberus
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1042.72 ▼2.14
Dashboard /wp-admin3.40 ▲0.1053.53 ▼3.00
Posts /wp-admin/edit.php3.52 ▲0.1651.39 ▼6.88
Add New Post /wp-admin/post-new.php5.98 ▲0.1097.95 ▼14.97
Media Library /wp-admin/upload.php3.33 ▲0.1038.29 ▲3.80

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 2 new tables, 7 new options
New tables
wp_mythic_cerberus
wp_mythic_cerberus_login_fails
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
mythiccerberusAdminOptions
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Mythic Cerberus: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.14 ▼0.391.79 ▲0.0347.72 ▲3.42
Dashboard /wp-admin2,199 ▲255.57 ▲0.0587.14 ▼7.6838.05 ▼5.96
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0736.80 ▼3.4133.78 ▲0.41
Add New Post /wp-admin/post-new.php1,529 ▲223.58 ▲0.55718.82 ▲57.2157.80 ▲1.08
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.0399.37 ▼9.5542.89 ▼4.49
Mythic Cerberus /wp-admin/mythic-cerberus.php260.420.0816.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mythic-cerberus/mythic-cerberus.php:200

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/mythic-cerberus.php
    • > Network (severe)
    wp-admin/mythic-cerberus.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: login form, login, login control, login blocking, protect login...

mythic-cerberus/mythic-cerberus.php Passed 13 tests

"Mythic Cerberus" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Guards your login form and sends with failed logins to Hades.

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
Good job! No executable or dangerous file extensions detected426 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28637426

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin