89% 4cgandhi

Code Review | 4cgandhi

WordPress plugin 4cgandhi scored89%from 54 tests.

About plugin

  • Plugin page: 4cgandhi
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3+
  • WordPress version: 6.3.1
  • First release: Jan 19, 2021
  • Latest release: Jan 19, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: jay_patel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /731 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.39ms] Passed 4 tests

This is a short check of server-side resources used by 4cgandhi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.85 ▼3.16
Dashboard /wp-admin3.31 ▲0.0147.81 ▼1.93
Posts /wp-admin/edit.php3.37 ▲0.0146.33 ▼1.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.63 ▼10.69
Media Library /wp-admin/upload.php3.24 ▲0.0134.61 ▲1.58

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

4cgandhi: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.73 ▼0.481.75 ▲0.1938.03 ▲2.38
Dashboard /wp-admin2,203 ▲296.01 ▲1.0498.51 ▼16.1740.44 ▲0.54
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0339.58 ▲4.9036.39 ▲0.87
Add New Post /wp-admin/post-new.php1,544 ▲2418.15 ▼5.31620.86 ▼66.8955.45 ▲1.76
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0497.91 ▼12.7341.47 ▼1.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

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 83% from 29 tests

readme.txt 75% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Tested up to: The plugin version is formatted incorrectly
  • Screenshots: Please add images for these screenshots: #1 (plugin_settings.png), #2 (display-frontend-demo.png)
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt might help

4cgandhi/4cgandhi.php 92% from 13 tests

"4cgandhi" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 209 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin877 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3512262816
PHP1101652
CSS1009

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin