Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼3.88ms] Passed 4 tests
Server-side resources used by Goracash
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 45.15 ▲4.09 |
Dashboard /wp-admin | 3.46 ▲0.11 | 46.53 ▼15.30 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.74 ▲2.31 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 92.89 ▼1.96 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.50 ▼0.58 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 88 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_goracash_iframe |
widget_goracash_banner |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Goracash
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.24 ▼1.16 | 2.85 ▲0.94 | 44.61 ▼2.04 |
Dashboard /wp-admin | 2,230 ▲42 | 4.88 ▼0.00 | 107.31 ▼11.46 | 40.21 ▼3.73 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.05 ▲0.08 | 38.72 ▼0.60 | 36.84 ▲4.20 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.45 ▲0.01 | 619.03 ▼46.98 | 65.89 ▲11.36 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.21 ▼0.01 | 101.17 ▼2.75 | 45.16 ▼0.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_goracash_iframe
- widget_recent-comments
- widget_goracash_banner
- theysaidso_admin_options
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 47× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/goracash/includes/goracash-api-php-client/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/goracash/includes/goracash-api-php-client/tests/bootstrap.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/goracash/includes/goracash-api-php-client/tests/lead/LeadEstimationPro.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/goracash/includes/free.content.widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'Goracash\\Service' not found in wp-content/plugins/goracash/includes/goracash-api-php-client/src/Service/Contact.php:23
- > PHP Fatal error
Uncaught Error: Class 'Goracash\\Exception' not found in wp-content/plugins/goracash/includes/goracash-api-php-client/src/Service/Exception.php:23
- > PHP Warning
require_once(wp-content/plugins/goracash/includes/goracash-api-php-client/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/goracash/includes/goracash-api-php-client/tests/bootstrap.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'Goracash\\Service\\Data' not found in wp-content/plugins/goracash/includes/goracash-api-php-client/src/Service/DataDaily.php:21
- > PHP Fatal error
Uncaught Error: Class 'Goracash\\Service\\Lead' not found in wp-content/plugins/goracash/includes/goracash-api-php-client/src/Service/LeadEstimationPro.php:21
- > PHP Fatal error
Uncaught Error: Class 'Goracash\\Service' not found in wp-content/plugins/goracash/includes/goracash-api-php-client/src/Service/Phone.php:23
- > PHP Fatal error
Uncaught Error: Class 'Goracash\\Service\\Lead' not found in wp-content/plugins/goracash/includes/goracash-api-php-client/src/Service/LeadHealthPro.php:21
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Donate link: Invalid url: ""
goracash/wp-goracash.php 92% from 13 tests
The entry point to "Goracash" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("goracash.php" instead of "wp-goracash.php")
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
No dangerous file extensions were detected7,866 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 942 | 2,313 | 6,345 |
SVG | 1 | 0 | 0 | 640 |
PO File | 3 | 247 | 260 | 611 |
XML | 2 | 0 | 0 | 66 |
JSON | 3 | 0 | 0 | 60 |
Markdown | 1 | 16 | 0 | 49 |
CSS | 3 | 2 | 18 | 47 |
YAML | 1 | 0 | 0 | 26 |
Bourne Shell | 1 | 4 | 0 | 13 |
INI | 1 | 0 | 1 | 7 |
JavaScript | 1 | 3 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 6.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 7 | 12.96% |
▷ Concrete classes | 47 | 87.04% |
▷ Final classes | 0 | 0.00% |
Methods | 479 | |
▷ Static methods | 23 | 4.80% |
▷ Public methods | 452 | 94.36% |
▷ Protected methods | 19 | 3.97% |
▷ Private methods | 8 | 1.67% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 28 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 28 | 100.00% |
▷ Public constants | 28 | 100.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