82% common-ninja

Code Review | Common Ninja: Fully Customizable & Perfectly Responsive Free Widgets for WordPress Websites

WordPress plugin Common Ninja: Fully Customizable & Perfectly Responsive Free Widgets for WordPress Websites scored 82% from 54 tests.

About plugin

  • Plugin page: common-ninja
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.0
  • WordPress version: 6.3.1
  • First release: Dec 16, 2020
  • Latest release: Jun 21, 2023
  • Number of updates: 11
  • Update frequency: every 83.5 days
  • Top authors: CommonNinja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,369 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Common Ninja: Fully Customizable & Perfectly Responsive Free Widgets for WordPress Websites
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.53 ▼4.70
Dashboard /wp-admin3.31 ▲0.0144.17 ▼6.56
Posts /wp-admin/edit.php3.36 ▲0.0145.15 ▼3.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.20 ▲4.98
Media Library /wp-admin/upload.php3.23 ▲0.0146.48 ▲11.62

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Common Ninja: Fully Customizable & Perfectly Responsive Free Widgets for WordPress Websites
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9614.39 ▲0.1737.02 ▲34.6136.79 ▼10.90
Dashboard /wp-admin2,206 ▲185.80 ▲0.9197.72 ▼23.1737.57 ▼10.34
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0138.60 ▲1.0535.17 ▼0.34
Add New Post /wp-admin/post-new.php6,583 ▲5,04629.42 ▲6.36898.48 ▲267.3056.41 ▼2.62
Media Library /wp-admin/upload.php1,388 ▲94.24 ▲0.08102.32 ▼3.5546.16 ▲1.90

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please 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_shortcode() in wp-content/plugins/common-ninja/commonninja.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 26 tag instead of maximum 10
The official readme.txt might help

common-ninja/commonninja.php 54% from 13 tests

The principal PHP file in "Common Ninja: Fully Customizable & Perfectly Responsive Free Widgets for WordPress Websites" v. 1.1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("common-ninja.php" instead of "commonninja.php")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "5.2")
  • Domain Path: The domain path must begin with a forward slash character ("/")
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)

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
Everything looks great! No dangerous files found in this plugin97 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13170
PHP1174027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png5.44KB2.64KB▼ 51.49%