83% aitasi-coming-soon

Code Review | Aitasi Coming Soon

WordPress plugin Aitasi Coming Soon scored83%from 54 tests.

About plugin

  • Plugin page: aitasi-coming-soon
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 17, 2015
  • Latest release: May 28, 2022
  • Number of updates: 32
  • Update frequency: every 76.4 days
  • Top authors: rubel_miah (81.25%)shapedplugin (21.88%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /35,963 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.99ms] Passed 4 tests

Analyzing server-side resources used by Aitasi Coming Soon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1535.59 ▼12.35
Dashboard /wp-admin3.51 ▲0.2151.07 ▲5.81
Posts /wp-admin/edit.php3.55 ▲0.1950.40 ▼1.52
Add New Post /wp-admin/post-new.php6.01 ▲0.1395.29 ▲4.26
Media Library /wp-admin/upload.php3.34 ▲0.1141.52 ▲5.64

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 167 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
_cs_options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Aitasi Coming Soon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,015 ▲26915.45 ▲0.831.63 ▼0.3941.35 ▼1.02
Dashboard /wp-admin2,421 ▲2307.16 ▲2.25146.18 ▲48.3049.49 ▲6.83
Posts /wp-admin/edit.php2,330 ▲2413.64 ▲1.6260.33 ▲19.0431.33 ▼4.07
Add New Post /wp-admin/post-new.php1,583 ▲6423.66 ▲0.32596.76 ▼85.3934.05 ▼19.44
Media Library /wp-admin/upload.php1,460 ▲724.96 ▲0.7285.14 ▼11.0740.54 ▼3.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • _cs_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% 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 50% 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
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/aitasi-coming-soon/template/section-home.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cs_get_option() in wp-content/plugins/aitasi-coming-soon/template/inc/stylization_css.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cs_get_option() in wp-content/plugins/aitasi-coming-soon/template/comingsoon.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aitasi-coming-soon/includes/color-customize.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/aitasi-coming-soon/coming-soon.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aitasi-coming-soon/includes/functions.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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 your attention:
  • Tags: There are too many tags (18 tag instead of maximum 10)
The official readme.txt might help

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

The primary PHP file in "Aitasi Coming Soon" version 2.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 390 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aitasi-coming-soon.php" instead of "aitasi.php")

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
Good job! No executable or dangerous file extensions detected36,678 lines of code in 104 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,928
CSS163782148,364
PHP541,5881,3365,884
JavaScript171,2479015,443
Sass528701,837
SVG3001,524
PO File6261285601
Markdown118097

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity13.41
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes34
▷ Abstract classes25.88%
▷ Concrete classes3294.12%
▷ Final classes00.00%
Methods137
▷ Static methods42.92%
▷ Public methods137100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions46
▷ Named functions46100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.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
25 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/css/images/ui-icons_ffd27a_256x240.png4.44KB4.17KB▼ 6.02%
admin/assets/css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
admin/codestar-framework/assets/images/chosen-sprite.png0.63KB0.88KB0.00%
assets/images/favicon.png1.76KB1.05KB▼ 40.06%
admin/assets/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png0.41KB0.15KB▼ 62.44%