90% mythic-wp-management

Code Review | Mythic WP Management

WordPress plugin Mythic WP Management scored90%from 54 tests.

About plugin

  • Plugin page: mythic-wp-management
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 20, 2022
  • Latest release: Nov 29, 2023
  • Number of updates: 22
  • Update frequency: every 15.6 days
  • Top authors: mythic_beasts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,286 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.08ms] Passed 4 tests

Analyzing server-side resources used by Mythic WP Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0834.73 ▼10.84
Dashboard /wp-admin3.38 ▲0.0352.73 ▼6.12
Posts /wp-admin/edit.php3.43 ▲0.0749.23 ▲1.47
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.45 ▼8.82
Media Library /wp-admin/upload.php3.30 ▲0.0734.91 ▲1.59

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
mythic-wp-last_query
db_upgraded
mythic-wp-key
can_compress_scripts
mythic-wp-last_cron

Browser metrics Passed 4 tests

Mythic WP Management: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲5514.34 ▲0.071.58 ▼0.0536.14 ▼7.96
Dashboard /wp-admin2,199 ▲215.60 ▼0.1493.05 ▼24.4743.70 ▲0.53
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0241.77 ▲0.9638.45 ▼2.20
Add New Post /wp-admin/post-new.php1,527 ▲123.79 ▲0.89609.52 ▼68.5048.40 ▲3.35
Media Library /wp-admin/upload.php1,401 ▼24.14 ▼0.0099.66 ▲2.2142.67 ▲2.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

mythic-wp-management/mythic-wp-management.php Passed 13 tests

The primary PHP file in "Mythic WP Management" version 1.6.0 is used by WordPress to initiate all plugin functionality
130 characters long description:
This plugin enables data collection as part of the Mythic Beasts Managed WordPress Hosting service, and provides relevant notices.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin253 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2115114253

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin