Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▼3.62ms] Passed 4 tests
Server-side resources used by Flows
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 40.73 ▲3.70 |
Dashboard /wp-admin | 4.07 ▲0.72 | 53.06 ▼12.94 |
Posts /wp-admin/edit.php | 4.16 ▲0.80 | 56.82 ▲11.80 |
Add New Post /wp-admin/post-new.php | 6.70 ▲0.81 | 83.29 ▼13.88 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 41.49 ▲8.63 |
Add new /wp-admin/post-new.php?post_type=flows | 4.53 | 55.26 |
All Flows /wp-admin/edit.php?post_type=flows | 4.04 | 45.70 |
Server storage [IO: ▲3.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 385 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Flows
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲240 | 14.77 ▲0.41 | 1.95 ▲0.34 | 42.92 ▲1.34 |
Dashboard /wp-admin | 2,385 ▲194 | 6.50 ▲1.61 | 117.15 ▲7.22 | 38.63 ▼2.19 |
Posts /wp-admin/edit.php | 2,291 ▲202 | 3.39 ▲1.39 | 49.87 ▲11.58 | 31.35 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,548 ▲4 | 23.58 ▲5.35 | 589.24 ▼54.41 | 34.38 ▼27.80 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.23 ▲0.03 | 83.24 ▼15.25 | 43.60 ▲0.39 |
Add new /wp-admin/post-new.php?post_type=flows | 2,820 | 8.14 | 201.62 | 68.62 |
All Flows /wp-admin/edit.php?post_type=flows | 1,260 | 3.47 | 43.52 | 28.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 45× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/flows/CMB2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/flows/CMB2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/flows/shortcode-function.php:2
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/flows/CMB2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: stepts, shortcode, layout, timelines, flows...
flows/flows.php Passed 13 tests
Analyzing the main PHP file in "Flows" version 0.1
123 characters long description:
Flows lets you easily show your business processes, software process, or workflow in a creative responsive design template.
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 plugin54,176 lines of code in 225 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 123 | 14,420 | 18,613 | 32,593 |
PHP | 60 | 2,127 | 6,139 | 7,198 |
JSON | 2 | 0 | 0 | 6,602 |
CSS | 14 | 299 | 1,193 | 4,840 |
JavaScript | 9 | 378 | 585 | 1,532 |
Sass | 17 | 306 | 29 | 1,411 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 19.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 9 | 13.24% |
▷ Concrete classes | 59 | 86.76% |
▷ Final classes | 0 | 0.00% |
Methods | 542 | |
▷ Static methods | 91 | 16.79% |
▷ Public methods | 450 | 83.03% |
▷ Protected methods | 89 | 16.42% |
▷ Private methods | 3 | 0.55% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 0.96MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 439.02KB | 118.55KB | ▼ 73.00% |
CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
assets/screenshot-2.png | 376.30KB | 96.23KB | ▼ 74.43% |
assets/banner-1544x500.png | 77.46KB | 32.28KB | ▼ 58.33% |
assets/icon-128x128.png | 14.03KB | 5.35KB | ▼ 61.87% |