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.24MB] [CPU: ▲11.59ms] Passed 4 tests
Server-side resources used by Morphii
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 56.13 ▲15.98 |
Dashboard /wp-admin | 3.53 ▲0.23 | 62.22 ▲9.25 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 68.19 ▲17.65 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 92.38 ▲3.58 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 55.38 ▲17.53 |
Settings /wp-admin/admin.php?page=morphii-settings | 3.62 | 54.00 |
Morphii Reviews /wp-admin/admin.php?page=morphii-reviews | 3.54 | 52.93 |
Server storage [IO: ▲6.94MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 1,028 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Morphii: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 13.55 ▼0.82 | 3.49 ▲1.74 | 35.51 ▼7.45 |
Dashboard /wp-admin | 2,267 ▲79 | 5.25 ▼0.66 | 113.34 ▼2.93 | 42.05 ▼0.47 |
Posts /wp-admin/edit.php | 2,155 ▲66 | 2.40 ▲0.38 | 43.12 ▲4.98 | 33.99 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,564 ▲45 | 21.17 ▼2.28 | 717.13 ▲5.39 | 38.88 ▼14.17 |
Media Library /wp-admin/upload.php | 1,446 ▲55 | 4.68 ▲0.48 | 109.26 ▲7.00 | 48.31 ▲3.28 |
Settings /wp-admin/admin.php?page=morphii-settings | 1,285 | 2.20 | 48.64 | 28.80 |
Morphii Reviews /wp-admin/admin.php?page=morphii-reviews | 986 | 2.01 | 29.63 | 27.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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 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 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
Almost there! Just fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/morphii/includes/class.morphii-data.php
- > /wp-content/plugins/morphii/assets/libs/vendor/markbaker/matrix/buildPhar.php
- > /wp-content/plugins/morphii/includes/class.morphii-questions-table.php
- > /wp-content/plugins/morphii/includes/class.morphii-list-table.php
- > /wp-content/plugins/morphii/includes/class.morphii-shortcode.php
- 343× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
include(wp-content/plugins/morphii/assets/libs/vendor/markbaker/matrix/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/morphii/assets/libs/vendor/markbaker/matrix/examples/test.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\Html' not found in wp-content/plugins/morphii/assets/libs/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf.php:10
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_HTMLModule' not found in wp-content/plugins/morphii/assets/libs/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeEmbed.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/morphii/assets/libs/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/BoolToCSS.php:6
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_Strategy_Composite' not found in wp-content/plugins/morphii/assets/libs/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/Core.php:6
- > PHP Fatal error
Uncaught Error: Class 'ZipStream\\Exception' not found in wp-content/plugins/morphii/assets/libs/vendor/maennchen/zipstream-php/src/Exception/IncompatibleOptionsException.php:11
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/morphii/assets/libs/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Html.php:23
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/morphii/assets/libs/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Length.php:6
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\BaseParserClass' not found in wp-content/plugins/morphii/assets/libs/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Styles.php:18
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_ChildDef' not found in wp-content/plugins/morphii/assets/libs/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Empty.php:10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #10, #11, #12, #9 in morphii/assets to your readme.txt
morphii/morphii-init.php 92% from 13 tests
The main PHP script in "Morphii" version 2.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("morphii.php" instead of "morphii-init.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected98,052 lines of code in 824 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 771 | 19,812 | 50,641 | 94,148 |
Markdown | 22 | 506 | 0 | 1,375 |
JSON | 14 | 0 | 0 | 1,236 |
JavaScript | 4 | 40 | 61 | 785 |
YAML | 5 | 51 | 0 | 237 |
CSS | 3 | 16 | 1 | 165 |
XML | 4 | 20 | 4 | 105 |
INI | 1 | 1 | 1 | 1 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,011)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 333)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 19.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,011.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 333.00 |
Code structure | ||
---|---|---|
Namespaces | 84 | |
Interfaces | 27 | |
Traits | 0 | |
Classes | 713 | |
▷ Abstract classes | 42 | 5.89% |
▷ Concrete classes | 671 | 94.11% |
▷ Final classes | 4 | 0.60% |
Methods | 5,273 | |
▷ Static methods | 1,596 | 30.27% |
▷ Public methods | 3,965 | 75.19% |
▷ Protected methods | 263 | 4.99% |
▷ Private methods | 1,045 | 19.82% |
Functions | 84 | |
▷ Named functions | 48 | 57.14% |
▷ Anonymous functions | 36 | 42.86% |
Constants | 1,151 | |
▷ Global constants | 14 | 1.22% |
▷ Class constants | 1,137 | 98.78% |
▷ Public constants | 1,062 | 93.40% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected