89% naiba-coming-soon

Code Review | Naiba Coming Soon

WordPress plugin Naiba Coming Soon scored89%from 54 tests.

About plugin

  • Plugin page: naiba-coming-soon
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Apr 21, 2023
  • Latest release: Apr 21, 2023
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: naibabiji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.48ms] Passed 4 tests

Analyzing server-side resources used by Naiba Coming Soon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0348.97 ▲7.46
Dashboard /wp-admin3.33 ▲0.0348.16 ▼3.23
Posts /wp-admin/edit.php3.38 ▲0.0352.81 ▲5.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.87 ▼12.74
Media Library /wp-admin/upload.php3.26 ▲0.0338.24 ▲4.48
Naiba Coming Soon /wp-admin/options-general.php?page=naiba_coming_soon_settings3.2229.77

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Naiba Coming Soon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲14913.31 ▼1.074.92 ▲3.0444.12 ▼1.30
Dashboard /wp-admin2,301 ▲1164.87 ▼0.98111.58 ▼9.5661.52 ▲17.91
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0039.15 ▲1.4036.68 ▲1.76
Add New Post /wp-admin/post-new.php1,536 ▲1723.10 ▼0.32648.64 ▼33.6152.81 ▼6.16
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0094.54 ▼5.0540.68 ▼5.79
Naiba Coming Soon /wp-admin/options-general.php?page=naiba_coming_soon_settings7882.0622.7029.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
The SRP test was a success

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
  • Contributors: Please add at least on tag
The official readme.txt might help

naiba-coming-soon/naiba-coming-soon.php Passed 13 tests

The primary PHP file in "Naiba Coming Soon" version 1.0 is used by WordPress to initiate all plugin functionality
56 characters long description:
A simple and effective coming soon plugin for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin164 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11827112
CSS17052

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin