Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.61MB] [CPU: ▲2.66ms] Passed 4 tests
A check of server-side resources used by Casia Counter Number
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 43.50 ▲1.90 |
Dashboard /wp-admin | 4.00 ▲0.69 | 57.93 ▲7.27 |
Posts /wp-admin/edit.php | 4.09 ▲0.73 | 60.72 ▲13.57 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.69 | 91.10 ▼10.23 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 43.59 ▲11.71 |
Add New /wp-admin/post-new.php?post_type=cascn_count_section | 4.32 | 53.84 |
All Items /wp-admin/edit.php?post_type=cascn_count_section | 3.97 | 50.46 |
Server storage [IO: ▲3.03MB] [DB: ▲0.09MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 460 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Casia Counter Number
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲223 | 14.53 ▲0.17 | 2.04 ▲0.29 | 42.19 ▲1.90 |
Dashboard /wp-admin | 2,373 ▲196 | 6.25 ▲0.58 | 122.24 ▲4.91 | 39.44 ▼19.02 |
Posts /wp-admin/edit.php | 2,298 ▲201 | 3.35 ▲1.33 | 53.00 ▲13.09 | 30.88 ▼5.87 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.53 ▼0.18 | 696.16 ▲73.80 | 37.17 ▼22.20 |
Media Library /wp-admin/upload.php | 3,924 ▲2,524 | 5.89 ▲1.80 | 159.79 ▲45.92 | 59.67 ▲14.17 |
Add New /wp-admin/post-new.php?post_type=cascn_count_section | 1,860 | 3.70 | 71.23 | 34.59 |
All Items /wp-admin/edit.php?post_type=cascn_count_section | 1,282 | 3.33 | 49.93 | 29.20 |
Uninstaller [IO: ▲0.12MB] [DB: ▲0.09MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/casia-counter-number/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/casia-counter-number/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/casia-counter-number/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/casia-counter-number/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/casia-counter-number/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/casia-counter-number/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/casia-counter-number/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/casia-counter-number/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/casia-counter-number/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/casia-counter-number/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No plugin tags provided
casia-counter-number/casia-counter-number.php 92% from 13 tests
The main PHP script in "Casia Counter Number" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin51,070 lines of code in 215 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 55 | 2,086 | 6,201 | 7,135 |
CSS | 13 | 1,171 | 1,148 | 4,694 |
JSON | 2 | 0 | 0 | 3,529 |
Sass | 16 | 300 | 25 | 1,379 |
JavaScript | 6 | 326 | 499 | 1,376 |
Markdown | 2 | 215 | 0 | 633 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 18.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 8 | 12.12% |
▷ Concrete classes | 58 | 87.88% |
▷ Final classes | 0 | 0.00% |
Methods | 519 | |
▷ Static methods | 86 | 16.57% |
▷ Public methods | 428 | 82.47% |
▷ Protected methods | 88 | 16.96% |
▷ Private methods | 3 | 0.58% |
Functions | 45 | |
▷ Named functions | 45 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
114 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/streamline/64/185081 - speech streamline talk user.png | 1.38KB | 1.58KB | 0.00% |
cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
img/streamline/64/185094 - settings streamline.png | 1.30KB | 1.27KB | ▼ 2.54% |
img/streamline/64/185078 - email mail streamline.png | 0.97KB | 1.11KB | 0.00% |
img/streamline/64/185020 - macintosh.png | 1.02KB | 0.96KB | ▼ 6.14% |