79% mimo-colors

Code Review | Mimo Colors

WordPress plugin Mimo Colors scored79%from 54 tests.

About plugin

  • Plugin page: mimo-colors
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5.1
  • WordPress version: 6.3.1
  • First release: May 17, 2016
  • Latest release: May 17, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: mimothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,849 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Mimo Colors
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.70 ▼10.41
Dashboard /wp-admin3.58 ▲0.2752.30 ▲1.40
Posts /wp-admin/edit.php3.63 ▲0.2751.79 ▲2.43
Add New Post /wp-admin/post-new.php5.65 ▼0.2475.75 ▼16.40
Media Library /wp-admin/upload.php3.44 ▲0.2136.75 ▲1.11
Mimo Colors /wp-admin/themes.php?page=mimo-colors-settings4.0337.91

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Mimo Colors
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.95 ▼0.709.10 ▲7.2743.28 ▼1.42
Dashboard /wp-admin2,213 ▲255.88 ▼0.1398.71 ▼5.1639.70 ▼3.44
Posts /wp-admin/edit.php2,093 ▲12.01 ▲0.0438.69 ▼3.2934.72 ▼2.38
Add New Post /wp-admin/post-new.php1,555 ▲2223.17 ▼0.02638.16 ▼71.0351.31 ▼4.29
Media Library /wp-admin/upload.php1,392 ▲14.19 ▲0.0195.74 ▼3.8240.46 ▼4.60
Mimo Colors /wp-admin/themes.php?page=mimo-colors-settings1,1852.6256.1145.16

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mimo-colors/public/views/public.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mimo-colors/includes/Widgets-Helper/wph-widget-class.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mimo-colors/admin/includes/WP-Contextual-Help/wp-contextual-help.php:141
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mimo-colors/admin/views/admin.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mimo-colors/admin/includes/CMB2/init.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/mimo-colors/admin/includes/CMB2/bootstrap.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: colorize, custom colors, color customizer, extra colors, style...

mimo-colors/mimo-colors.php Passed 13 tests

The main file in "Mimo Colors" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Add custom colors to elements with no coding knowledge.

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
Everything looks great! No dangerous files found in this plugin8,665 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
CSS61,0131,0233,928
PHP281,3993,0253,837
JavaScript6162120692
SVG300207
HTML1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity27.42
▷ Minimum class complexity1.00
▷ Maximum class complexity107.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods283
▷ Static methods3512.37%
▷ Public methods26794.35%
▷ Protected methods72.47%
▷ Private methods93.18%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected