Benchmarks
Plugin footprint Passed 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: ▲2.32MB] [CPU: ▼299.16ms] Passed 4 tests
This is a short check of server-side resources used by Coming Soon Chop Chop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 54.80 ▲4.19 |
Dashboard /wp-admin | 6.43 ▲3.03 | 44.77 ▲10.55 |
Posts /wp-admin/edit.php | 6.72 ▲3.08 | 49.77 ▲12.54 |
Add New Post /wp-admin/post-new.php | 9.99 ▲3.00 | 109.71 ▼1,218.21 |
Media Library /wp-admin/upload.php | 6.42 ▲3.12 | 36.70 ▲6.85 |
Coming Soon Chop Chop /wp-admin/options-general.php?page=cc_coming_soon | 9.23 | 407.79 |
Server storage [IO: ▲2.45MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 86 new files
Database: no new tables, 1 new option
New WordPress options |
---|
CcComingSoonAdminOptions |
Browser metrics 75% from 4 tests
This is an overview of browser requirements for Coming Soon Chop Chop
It is time to focus on the following
- Nodes: You must limit the number of DOM nodes under 25,000 (currently 28,748 on /wp-admin/options-general.php?page=cc_coming_soon)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,769 ▲16 | 15.97 ▼0.07 | 6.06 ▲0.18 | 2.28 ▼0.14 |
Dashboard /wp-admin | 2,897 ▲39 | 6.12 ▼0.07 | 121.43 ▼13.05 | 155.10 ▼1.13 |
Posts /wp-admin/edit.php | 2,693 ▲36 | 3.24 ▼0.01 | 62.31 ▼4.63 | 140.54 ▼5.03 |
Add New Post /wp-admin/post-new.php | 1,671 ▲10 | 18.12 ▲1.49 | 388.57 ▼26.57 | 155.20 ▼1.93 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.52 ▼0.03 | 139.45 ▼3.53 | 189.36 ▼3.39 |
Coming Soon Chop Chop /wp-admin/options-general.php?page=cc_coming_soon | 28,748 | 11.82 | 297.87 | 160.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework' not found in wp-content/plugins/cc-coming-soon/admin/views/admin.php:14
- > PHP Warning
Use of undefined constant CC_CS_PLUGIN_URL - assumed 'CC_CS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/cc-coming-soon/admin/views/templates.php on line 45
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework' not found in wp-content/plugins/cc-coming-soon/admin/views/admin.php:14
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FieldType' not found in wp-content/plugins/cc-coming-soon/admin/includes/admin-page-framework/third-party/revealer-cutom-field-type/RevealerCustomFieldType.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cc-coming-soon/admin/includes/admin-page-framework/admin-page-framework.min.php:2588
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cc-coming-soon/public/themes/default/index.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Autoload\\AutoloadGenerator' not found in wp-content/plugins/cc-coming-soon/vendor/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/cc-coming-soon/admin/views/templates.php:50
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FieldType' not found in wp-content/plugins/cc-coming-soon/admin/includes/admin-page-framework/third-party/google-web-font-custom-field-type/GoogleWebFontCustomFieldType.php:3
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
cc-coming-soon/cc-coming-soon.php 92% from 13 tests
Analyzing the main PHP file in "Coming Soon Chop Chop" version 2.2.4
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected26,796 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 12,482 |
PHP | 25 | 1,155 | 1,310 | 12,137 |
CSS | 4 | 264 | 221 | 1,275 |
JavaScript | 9 | 206 | 114 | 861 |
Markdown | 1 | 5 | 0 | 24 |
SVG | 1 | 1 | 0 | 17 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 14.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 138 | |
▷ Abstract classes | 47 | 34.06% |
▷ Concrete classes | 91 | 65.94% |
▷ Final classes | 2 | 2.20% |
Methods | 854 | |
▷ Static methods | 103 | 12.06% |
▷ Public methods | 617 | 72.25% |
▷ Protected methods | 134 | 15.69% |
▷ Private methods | 103 | 12.06% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 15 | |
▷ Global constants | 3 | 20.00% |
▷ Class constants | 12 | 80.00% |
▷ Public constants | 12 | 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
8 PNG files occupy 0.54MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 36.09KB | 13.59KB | ▼ 62.34% |
admin/assets/screenshots/default.png | 21.90KB | 8.46KB | ▼ 61.36% |
admin/assets/screenshots/calm.png | 157.95KB | 57.93KB | ▼ 63.32% |
public/themes/default/screenshot.png | 21.90KB | 8.46KB | ▼ 61.36% |
assets/screenshot-3.png | 43.96KB | 21.23KB | ▼ 51.72% |