83% coming-soon-mode

Code Review | Coming Soon Mode

WordPress plugin Coming Soon Mode scored83%from 54 tests.

About plugin

  • Plugin page: coming-soon-mode
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Oct 17, 2016
  • Latest release: Nov 8, 2016
  • Number of updates: 5
  • Update frequency: every 4.4 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,740 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.11ms] Passed 4 tests

A check of server-side resources used by Coming Soon Mode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.47 ▼6.59
Dashboard /wp-admin3.37 ▲0.0660.59 ▲5.60
Posts /wp-admin/edit.php3.49 ▲0.1356.13 ▲5.77
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.22 ▼14.18
Media Library /wp-admin/upload.php3.27 ▲0.0439.34 ▼1.27

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Coming Soon Mode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18514.87 ▲0.091.70 ▼0.1043.72 ▼2.32
Dashboard /wp-admin2,334 ▲1546.14 ▲0.48108.55 ▲18.1189.72 ▲51.54
Posts /wp-admin/edit.php2,280 ▲1803.33 ▲1.3146.25 ▲9.1777.09 ▲39.75
Add New Post /wp-admin/post-new.php1,695 ▲16722.15 ▼1.17579.46 ▼77.17152.56 ▲101.44
Media Library /wp-admin/upload.php1,414 ▲144.02 ▼0.1790.89 ▼15.0490.12 ▲34.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coming-soon-mode/comin-soon-mode.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Admin Panel view of submitted form data.)
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
The official readme.txt is a good inspiration

coming-soon-mode/comin-soon-mode.php 92% from 13 tests

"Coming Soon Mode" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("coming-soon-mode.php" instead of "comin-soon-mode.php")

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
There were no executable files found in this plugin387 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15625241
CSS114079
PO File1222367

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.58KB1.43KB▼ 9.69%
images/find-img.png28.58KB10.85KB▼ 62.03%
images/remove.png1.80KB1.48KB▼ 17.60%
screenshot-1.png47.82KB15.10KB▼ 68.43%
images/logo.png11.25KB4.39KB▼ 60.99%