Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼0.36ms] Passed 4 tests
A check of server-side resources used by Entro Wordpress Coming Soon per post/page or global
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 49.67 ▲7.68 |
Dashboard /wp-admin | 3.53 ▲0.23 | 54.68 ▲3.28 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 51.55 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 90.63 ▼4.06 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 34.17 ▼3.51 |
Server storage [IO: ▲17.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Entro Wordpress Coming Soon per post/page or global
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲118 | 13.63 ▼0.93 | 4.06 ▲2.30 | 41.61 ▼9.11 |
Dashboard /wp-admin | 2,263 ▲89 | 5.15 ▼0.52 | 93.37 ▼8.78 | 39.84 ▼3.78 |
Posts /wp-admin/edit.php | 2,184 ▲87 | 2.56 ▲0.54 | 41.24 ▲3.37 | 32.86 ▼3.92 |
Add New Post /wp-admin/post-new.php | 6,291 ▲4,765 | 26.27 ▲2.56 | 925.45 ▲242.25 | 96.08 ▲33.86 |
Media Library /wp-admin/upload.php | 1,479 ▲79 | 4.53 ▲0.35 | 98.04 ▼9.94 | 47.43 ▲1.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/entro-coming-soon-per-postpage-or-global/public/partials/templates/entroteam_countdown.php
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/entro-coming-soon-per-postpage-or-global/public/partials/templates/entroteam-coming-soon-site-animated2.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/entro-coming-soon-per-postpage-or-global/admin/partials/option_form.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/entro-coming-soon-per-postpage-or-global/public/partials/templates/entroteam-coming-soon-page-static2.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/entro-coming-soon-per-postpage-or-global/admin/vendor/mailchimp-api-master/tests/BatchTest.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/entro-coming-soon-per-postpage-or-global/public/partials/templates/entroteam-coming-soon-page-static1.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/entro-coming-soon-per-postpage-or-global/admin/vendor/mailchimp-api-master/tests/MailChimpTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/entro-coming-soon-per-postpage-or-global/public/partials/templates/entroteam-coming-soon-site-animated1.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/entro-coming-soon-per-postpage-or-global/public/partials/templates/entroteam_social_icons.php:1
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/entro-coming-soon-per-postpage-or-global/admin/vendor/mailchimp-api-master/tests/ListsTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/entro-coming-soon-per-postpage-or-global/admin/partials/post_settings.php:7
- > 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 on the user side
Optimizations
Plugin configuration 86% 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
These attributes need your attention:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
entro-coming-soon-per-postpage-or-global/coming-soon-plugin.php 77% from 13 tests
The main file in "Entro Wordpress Coming Soon per post/page or global" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("entro-coming-soon-per-postpage-or-global.php" instead of "coming-soon-plugin.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin12,551 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 564 | 45 | 8,813 |
JavaScript | 8 | 237 | 377 | 1,891 |
PHP | 27 | 393 | 631 | 1,666 |
Markdown | 1 | 55 | 0 | 115 |
JSON | 1 | 2 | 0 | 25 |
YAML | 2 | 1 | 1 | 20 |
XML | 1 | 0 | 0 | 17 |
INI | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 3 | 3.80% |
▷ Public methods | 67 | 84.81% |
▷ Protected methods | 1 | 1.27% |
▷ Private methods | 11 | 13.92% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 3.30MB with 2.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/partials/images/coming-soon.png | 1,511.05KB | 573.96KB | ▼ 62.02% |
public/partials/images/coming-soon-video.png | 675.30KB | 376.50KB | ▼ 44.25% |
public/partials/images/logo.png | 2.99KB | 1.27KB | ▼ 57.53% |
public/partials/images/coming-soon-social-ico.png | 14.81KB | 7.75KB | ▼ 47.66% |
public/partials/images/pattern.png | 2.74KB | 0.10KB | ▼ 96.43% |