78% coming-soon-page-splashpage-max

Code Review | NNM Coming Soon Page

WordPress plugin NNM Coming Soon Page scored78%from 54 tests.

About plugin

  • Plugin page: coming-soon-page-...
  • Plugin version: 0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-5.4.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2018
  • Latest release: Jul 29, 2020
  • Number of updates: 12
  • Update frequency: every 71.2 days
  • Top authors: newburynewmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /901 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.12MB] [CPU: ▼6.98ms] Passed 4 tests

This is a short check of server-side resources used by NNM Coming Soon Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.98 ▼4.67
Dashboard /wp-admin3.43 ▲0.1344.40 ▼5.72
Posts /wp-admin/edit.php3.55 ▲0.1950.41 ▲1.13
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.15 ▼18.67
Media Library /wp-admin/upload.php3.36 ▲0.1336.28 ▲2.37
Coming Soon Setup /wp-admin/options-general.php?page=nnmcs-coming-soon3.3533.95

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for NNM Coming Soon Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.74 ▲0.391.57 ▼0.2438.16 ▼10.31
Dashboard /wp-admin2,202 ▲255.62 ▼0.0594.45 ▼6.2841.84 ▼3.73
Posts /wp-admin/edit.php2,104 ▲222.02 ▲0.0236.56 ▼8.2736.10 ▼2.02
Add New Post /wp-admin/post-new.php1,531 ▲323.17 ▲0.09651.87 ▼21.0453.09 ▼0.02
Media Library /wp-admin/upload.php1,407 ▲44.19 ▼0.0097.19 ▼6.6340.86 ▼1.32
Coming Soon Setup /wp-admin/options-general.php?page=nnmcs-coming-soon1,6914.69111.1381.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/coming-soon-page-splashpage-max/nnm-coming-soon.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'NNM_Coming_Soon_Layout' not found in wp-content/plugins/coming-soon-page-splashpage-max/coming-soon-page-template.php:1

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

coming-soon-page-splashpage-max/nnm-coming-soon.php 85% from 13 tests

"NNM Coming Soon Page" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("coming-soon-page-splashpage-max.php" instead of "nnm-coming-soon.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected948 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP25219628
CSS2390224
JavaScript214196

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity47.00
▷ Minimum class complexity32.00
▷ Maximum class complexity62.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods3096.77%
▷ Protected methods00.00%
▷ Private methods13.23%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin