10% coming-soon-tmc

Code Review | Coming Soon TMC

WordPress plugin Coming Soon TMC scored10%from 54 tests.

About plugin

  • Plugin page: coming-soon-tmc
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.8.0
  • WordPress version: 6.3.1
  • First release: Apr 30, 2017
  • Latest release: Jun 27, 2017
  • Number of updates: 12
  • Update frequency: every 4.8 days
  • Top authors: themastercut (100%)Otto42 (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,100 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/coming-soon-tmc/lib/App.php+86
    Undefined index: factory_reset

Server metrics [RAM: ▲2.09MB] [CPU: ▲0.39ms] Passed 4 tests

This is a short check of server-side resources used by Coming Soon TMC
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.11 ▲1.6549.11 ▲8.32
Dashboard /wp-admin5.55 ▲2.2061.31 ▼3.71
Posts /wp-admin/edit.php5.66 ▲2.3159.26 ▲9.50
Add New Post /wp-admin/post-new.php8.15 ▲2.2698.53 ▼12.57
Media Library /wp-admin/upload.php5.47 ▲2.2456.49 ▲18.95
Coming Soon TMC /wp-admin/options-general.php?page=cs_tmc_options8.4061.47

Server storage [IO: ▲2.17MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 265 new files
Database: no new tables, 7 new options
New WordPress options
cs_tmc_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coming Soon TMC
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8714.37 ▼0.191.93 ▲0.1640.68 ▲1.43
Dashboard /wp-admin2,206 ▲295.70 ▲0.0795.86 ▲6.0171.58 ▲26.09
Posts /wp-admin/edit.php2,126 ▲262.02 ▲0.0137.21 ▲3.0635.91 ▲1.56
Add New Post /wp-admin/post-new.php1,712 ▲16724.50 ▲1.59707.27 ▲39.6065.31 ▲11.17
Media Library /wp-admin/upload.php1,417 ▲204.20 ▼0.01100.97 ▼6.5877.57 ▲27.54
Coming Soon TMC /wp-admin/options-general.php?page=cs_tmc_options9542.3836.7238.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • cs_tmc_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/coming-soon-tmc/coming-soon-tmc.php
  • 206× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'cs_tmc_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/coming-soon-tmc/lib/External/admin-page-framework/factory/_common/_abstract/_controller/AdminPageFramework_Resource_Base.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'cs_tmc_AdminPageFramework_FieldType' not found in wp-content/plugins/coming-soon-tmc/lib/External/admin-page-framework/factory/_common/form/field_type/AdminPageFramework_FieldType_radio.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'cs_tmc_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/coming-soon-tmc/lib/External/admin-page-framework/factory/admin_page/_view/AdminPageFramework_View__Resource.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'cs_tmc_AdminPageFramework_Form_View___Script_Base' not found in wp-content/plugins/coming-soon-tmc/lib/External/admin-page-framework/factory/_common/form/_view/script/AdminPageFramework_Form_View___Script_RepeatableSection.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'cs_tmc_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/coming-soon-tmc/lib/External/admin-page-framework/factory/admin_page/_model/AdminPageFramework_ExportOptions.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'cs_tmc\\lib\\Templates\\Classes\\Template' not found in wp-content/plugins/coming-soon-tmc/lib/Templates/Simple_Template.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'cs_tmc_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/coming-soon-tmc/lib/External/admin-page-framework/factory/admin_page/_model/AdminPageFramework_FormEmail.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'cs_tmc_AdminPageFramework_Factory_Model___Meta_Base' not found in wp-content/plugins/coming-soon-tmc/lib/External/admin-page-framework/factory/term_meta/_model/AdminPageFramework_TermMeta_Model___TermMeta.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'cs_tmc_AdminPageFramework_Factory' not found in wp-content/plugins/coming-soon-tmc/lib/External/admin-page-framework/factory/user_meta/AdminPageFramework_UserMeta.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'cs_tmc_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/coming-soon-tmc/lib/External/admin-page-framework/factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_CollapsibleSection.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)
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #7 (Admin panel (Settings / Lock button and Templates)), #8 (Admin panel / Customizer (Customize template view)), #9 (Admin panel / Social Media tab), #10 (Admin panel / Newsletter), #11 (Admin panel / Settings)
Please take inspiration from this readme.txt

coming-soon-tmc/coming-soon-tmc.php 85% from 13 tests

The main PHP file in "Coming Soon TMC" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • 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 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin19,658 lines of code in 243 files:
LanguageFilesBlank linesComment linesLines of code
PHP2351,9812,44319,450
Sass68818204
JavaScript1203
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.11
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes344
▷ Abstract classes9327.03%
▷ Concrete classes25172.97%
▷ Final classes20.80%
Methods1,818
▷ Static methods24213.31%
▷ Public methods1,06258.42%
▷ Protected methods26714.69%
▷ Private methods48926.90%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants00.00%
▷ Class constants16100.00%
▷ Public constants16100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/Templates/Screenshots/placeholder-300x200.png6.24KB1.06KB▼ 82.96%
(invalid) lib/Templates/Screenshots/caffee_coming-soon-tmc.png20.73KB0.00KB▼ 100.00%
lib/Templates/Screenshots/basicv2_coming-soon-tmc.png13.18KB5.37KB▼ 59.28%
lib/Templates/Screenshots/basic_coming-soon-tmc.png32.78KB6.29KB▼ 80.80%
lib/Templates/Assets/caffee/CAFFEE-LOGO-coming-soon-tmc.png7.29KB4.88KB▼ 33.07%