Benchmarks
Plugin footprint 64% 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: ▲1.31MB] [CPU: ▲327.97ms] 50% from 4 tests
A check of server-side resources used by SORTD
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 701.56ms on /wp-admin/admin.php?page=sortd_credential_settings)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 327.97ms on /wp-admin/admin.php?page=sortd-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.49 | 690.34 ▲648.79 |
Dashboard /wp-admin | 4.82 ▲1.47 | 56.46 ▼9.58 |
Posts /wp-admin/edit.php | 4.82 ▲1.46 | 733.81 ▲682.68 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.82 | 748.27 ▲652.86 |
Media Library /wp-admin/upload.php | 4.75 ▲1.51 | 51.63 ▲19.82 |
Credentials /wp-admin/admin.php?page=sortd_credential_settings | 4.73 | 701.56 |
Get Started /wp-admin/admin.php?page=sortd-settings | 4.74 | 48.03 |
Server storage [IO: ▲10.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 275 new files
Database: no new tables, 12 new options
New WordPress options |
---|
theysaidso_admin_options |
sortd_is_paid |
sortd__services |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
sortd_author_sync_success_ |
sortd_project_details |
sortd_activated |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for SORTD
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲231 | 13.37 ▼0.97 | 7.89 ▲6.11 | 37.94 ▼8.21 |
Dashboard /wp-admin | 2,271 ▲96 | 5.61 ▼0.11 | 93.33 ▼11.36 | 80.29 ▲36.11 |
Posts /wp-admin/edit.php | 2,260 ▲157 | 2.52 ▲0.56 | 42.43 ▲0.18 | 53.47 ▲15.53 |
Add New Post /wp-admin/post-new.php | 1,770 ▲244 | 22.85 ▼0.80 | 702.52 ▲88.61 | 23.30 ▼26.19 |
Media Library /wp-admin/upload.php | 1,476 ▲76 | 4.14 ▼0.04 | 100.03 ▲2.58 | 80.92 ▲39.77 |
Credentials /wp-admin/admin.php?page=sortd_credential_settings | 1,074 | 1.85 | 30.83 | 58.08 |
Get Started /wp-admin/admin.php?page=sortd-settings | 1,587 | 2.07 | 30.10 | 95.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/sortd/includes/class-sortd-helpers.php+594
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 12 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- sortd__services
- sortd_project_details
- sortd_is_paid
- widget_recent-posts
- sortd_activated
- can_compress_scripts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sortd_credential_settings
- > Notice in wp-content/plugins/sortd/admin/class-sortd-utils.php+118
Trying to access array offset on value of type bool
SRP 0% 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 take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sortd/public/partials/sortd-public-display.php
- > /wp-content/plugins/sortd/public/partials/plugin-name-public-display.php
- > /wp-content/plugins/sortd/admin/partials/sortd-header.php
- > /wp-content/plugins/sortd/admin/partials/sortd-footer.php
- 52× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: view_data in wp-content/plugins/sortd/admin/partials/config/field-details.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_data() in wp-content/plugins/sortd/admin/partials/config/display-form.php:14
- > PHP Notice
Trying to get property 'size' of non-object in wp-content/plugins/sortd/admin/partials/config/field-render-fileupload.php on line 28
- > PHP Notice
Undefined variable: field_details in wp-content/plugins/sortd/admin/partials/config/field-render-fileupload.php on line 23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sortd/admin/partials/config/field-details.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_data() in wp-content/plugins/sortd/admin/partials/sortd-templates.php:23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sortd/admin/partials/config/field-details.php on line 16
- > PHP Notice
Undefined variable: view_data in wp-content/plugins/sortd/admin/partials/config/field-details.php on line 16
- > PHP Warning
require_once(/var/www/html/wordpress/wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/sortd/admin/all_sync.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'Sortd_Helper' not found in wp-content/plugins/sortd/admin/partials/config/field-details.php:71
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #5, #6 in sortd/assets to your readme.txt
sortd/sortd.php Passed 13 tests
The main PHP file in "SORTD" ver. 3.0.1 adds more information about the plugin and also serves as the entry point for this plugin
91 characters long description:
SORTD helps to create a feature-rich native experience of your brand on PWA, Android & iOS.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin86,406 lines of code in 192 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 17 | 6,185 | 486 | 47,903 |
PHP | 81 | 6,568 | 2,889 | 18,214 |
JavaScript | 88 | 5,784 | 1,623 | 16,020 |
Sass | 1 | 4 | 0 | 2,835 |
JSON | 1 | 0 | 0 | 1,408 |
SVG | 4 | 0 | 1 | 26 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 120)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 72.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 373.00 |
Average method complexity | 5.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 120.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 296 | |
▷ Static methods | 58 | 19.59% |
▷ Public methods | 281 | 94.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 5.07% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
46 PNG files occupy 2.93MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/sortdlogo.png | 0.34KB | 0.32KB | ▼ 6.53% |
admin/css/facebook.png | 2.38KB | 1.32KB | ▼ 44.36% |
admin/css/check.png | 0.48KB | 0.46KB | ▼ 3.46% |
admin/css/ticksuccess.png | 3.00KB | 3.00KB | 0.10% |
admin/css/blue.png | 0.80KB | 0.29KB | ▼ 64.48% |