77% entro-coming-soon-per-postpage-or-global

Code Review | Entro Wordpress Coming Soon per post/page or global

WordPress plugin Entro Wordpress Coming Soon per post/page or global scored77%from 54 tests.

About plugin

  • Plugin page: entro-coming-soon...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2016
  • Latest release: Oct 26, 2016
  • Number of updates: 15
  • Update frequency: every 7.9 days
  • Top authors: entrosolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,589 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0949.67 ▲7.68
Dashboard /wp-admin3.53 ▲0.2354.68 ▲3.28
Posts /wp-admin/edit.php3.65 ▲0.2951.55 ▲2.84
Add New Post /wp-admin/post-new.php6.13 ▲0.2490.63 ▼4.06
Media Library /wp-admin/upload.php3.46 ▲0.2334.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲11813.63 ▼0.934.06 ▲2.3041.61 ▼9.11
Dashboard /wp-admin2,263 ▲895.15 ▼0.5293.37 ▼8.7839.84 ▼3.78
Posts /wp-admin/edit.php2,184 ▲872.56 ▲0.5441.24 ▲3.3732.86 ▼3.92
Add New Post /wp-admin/post-new.php6,291 ▲4,76526.27 ▲2.56925.45 ▲242.2596.08 ▲33.86
Media Library /wp-admin/upload.php1,479 ▲794.53 ▲0.3598.04 ▼9.9447.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
CSS18564458,813
JavaScript82373771,891
PHP273936311,666
Markdown1550115
JSON12025
YAML21120
XML10017
INI1104

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 code0.34
Average class complexity9.23
▷ Minimum class complexity1.00
▷ Maximum class complexity41.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods79
▷ Static methods33.80%
▷ Public methods6784.81%
▷ Protected methods11.27%
▷ Private methods1113.92%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
public/partials/images/coming-soon.png1,511.05KB573.96KB▼ 62.02%
public/partials/images/coming-soon-video.png675.30KB376.50KB▼ 44.25%
public/partials/images/logo.png2.99KB1.27KB▼ 57.53%
public/partials/images/coming-soon-social-ico.png14.81KB7.75KB▼ 47.66%
public/partials/images/pattern.png2.74KB0.10KB▼ 96.43%