Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.86MB] [CPU: ▼45.77ms] Passed 4 tests
This is a short check of server-side resources used by CODE MONKEYS PROPOSALS - Easily create client proposals from your Wordpress admin dashboard
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 57.36 ▲15.17 |
Dashboard /wp-admin | 3.08 ▼0.22 | 25.41 ▼35.14 |
Posts /wp-admin/edit.php | 3.08 ▼0.27 | 27.44 ▼42.33 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.80 | 26.90 ▼94.58 |
Media Library /wp-admin/upload.php | 3.08 ▼0.15 | 25.64 ▼11.01 |
Proposals /wp-admin/options-general.php?page=code-monkeys-proposals/includes/options.php | 3.08 | 27.82 |
Server storage [IO: ▲12.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 643 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CODE MONKEYS PROPOSALS - Easily create client proposals from your Wordpress admin dashboard
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲95 | 13.23 ▼1.04 | 5.36 ▲3.42 | 45.64 ▼4.27 |
Dashboard /wp-admin | 2,237 ▲60 | 5.75 ▲0.17 | 100.24 ▼10.70 | 71.06 ▲25.18 |
Posts /wp-admin/edit.php | 2,145 ▲42 | 2.19 ▲0.20 | 40.76 ▼9.02 | 51.88 ▲9.17 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.32 ▲2.36 | 726.92 ▼21.51 | 53.49 ▲4.02 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.32 ▲0.17 | 105.80 ▼3.58 | 57.65 ▲7.88 |
Proposals /wp-admin/options-general.php?page=code-monkeys-proposals/includes/options.php | 820 | 1.74 | 27.89 | 38.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=code-monkeys-proposals/includes/options.php
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
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 take a closer look at the following
- 43× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(other/ide_stubs/libsodium.php): failed to open stream: No such file or directory in wp-content/plugins/code-monkeys-proposals/includes/vendor/paragonie/random_compat/psalm-autoload.php on line 6
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Mpdf.php:54
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Barcode/S25.php:10
- > PHP Fatal error
require_once(): Failed opening required 'other/ide_stubs/libsodium.php' (include_path='.:/usr/share/php') in wp-content/plugins/code-monkeys-proposals/includes/vendor/paragonie/random_compat/psalm-autoload.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Barcode/Imb.php:34
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\TTFontFile' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/TTFontFileAnalysis.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/code-monkeys-proposals/enqueue.php:47
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Barcode/BarcodeException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Barcode/Codabar.php:9
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/code-monkeys-proposals/includes/vendor/mpdf/mpdf/src/Barcode/I25.php:10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: sow, web development, scope of work, proposals, web design...
code-monkeys-proposals/code-monkeys-proposals.php Passed 13 tests
Analyzing the main PHP file in "CODE MONKEYS PROPOSALS - Easily create client proposals from your Wordpress admin dashboard" version 1.0.1
88 characters long description:
Create and generate custom web design and development proposals quickly and efficiently.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin121,974 lines of code in 226 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 206 | 8,257 | 10,213 | 119,296 |
CSS | 3 | 170 | 27 | 1,076 |
Markdown | 6 | 212 | 0 | 757 |
JSON | 5 | 29 | 0 | 446 |
JavaScript | 1 | 68 | 77 | 290 |
XML | 3 | 9 | 0 | 66 |
YAML | 1 | 7 | 0 | 40 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 7,587)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 1,518)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 161.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,587.00 |
Average method complexity | 18.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1,518.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 103 | |
▷ Abstract classes | 3 | 2.91% |
▷ Concrete classes | 100 | 97.09% |
▷ Final classes | 0 | 0.00% |
Methods | 1,039 | |
▷ Static methods | 79 | 7.60% |
▷ Public methods | 901 | 86.72% |
▷ Protected methods | 30 | 2.89% |
▷ Private methods | 108 | 10.39% |
Functions | 33 | |
▷ Named functions | 27 | 81.82% |
▷ Anonymous functions | 6 | 18.18% |
Constants | 385 | |
▷ Global constants | 8 | 2.08% |
▷ Class constants | 377 | 97.92% |
▷ Public constants | 377 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-faint.png | 28.40KB | 10.84KB | ▼ 61.82% |