84% miso

Code Review | Miso

WordPress plugin Miso scored84%from 54 tests.

About plugin

  • Plugin page: miso
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-4.9
  • WordPress version: 6.3.1
  • First release: Dec 15, 2017
  • Latest release: Apr 17, 2018
  • Number of updates: 6
  • Update frequency: every 20.5 days
  • Top authors: jidaikobo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.48MB] [CPU: ▲0.25ms] Passed 4 tests

Server-side resources used by Miso
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4845.33 ▲2.46
Dashboard /wp-admin3.78 ▲0.4848.47 ▲0.03
Posts /wp-admin/edit.php3.90 ▲0.5450.57 ▲5.85
Add New Post /wp-admin/post-new.php6.36 ▲0.4886.92 ▼7.34
Media Library /wp-admin/upload.php3.71 ▲0.4840.31 ▲8.66
Miso Framework /wp-admin/options-general.php?page=miso_options3.6834.00

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Miso
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.22 ▼1.081.71 ▼0.5340.15 ▼12.96
Dashboard /wp-admin2,210 ▲254.86 ▼0.99103.44 ▼16.7742.25 ▼0.44
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0235.07 ▼1.3944.77 ▲11.92
Add New Post /wp-admin/post-new.php1,545 ▲1218.38 ▼5.01615.70 ▼58.7952.78 ▼10.61
Media Library /wp-admin/upload.php1,386 ▼24.25 ▲0.0895.37 ▼20.4341.56 ▼8.68
Miso Framework /wp-admin/options-general.php?page=miso_options8342.0422.8630.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Model' not found in wp-content/plugins/miso/classes/Model.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'ORM' not found in wp-content/plugins/miso/libs/paris/paris.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/miso/miso.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'Miso\\Session' not found in wp-content/plugins/miso/views/messages.php:3

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: framework, plugin

miso/miso.php Passed 13 tests

The main PHP file in "Miso" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
80 characters long description:
light weight MVC Framework which coexist with WordPress role system and routing.

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
There were no executable files found in this plugin2,950 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP185792,2462,936
PO File15312
JavaScript1002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity19.95
▷ Minimum class complexity1.00
▷ Maximum class complexity165.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes22
▷ Abstract classes14.55%
▷ Concrete classes2195.45%
▷ Final classes00.00%
Methods294
▷ Static methods12442.18%
▷ Public methods23078.23%
▷ Protected methods6120.75%
▷ Private methods31.02%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.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 images were found in this plugin