89% wc-sn-zone

Code Review | Plugin Name: Senegal Cities for Woocommerce

WordPress plugin Plugin Name: Senegal Cities for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: wc-sn-zone
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8
  • WordPress version: 6.3.1
  • First release: Dec 5, 2021
  • Latest release: Dec 5, 2021
  • Number of updates: 2
  • Update frequency: every 13.0 days
  • Top authors: creationdesolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /276 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.58ms] Passed 4 tests

Analyzing server-side resources used by Plugin Name: Senegal Cities for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.81 ▼2.00
Dashboard /wp-admin3.36 ▲0.0249.74 ▼20.47
Posts /wp-admin/edit.php3.41 ▲0.0648.99 ▼1.94
Add New Post /wp-admin/post-new.php5.94 ▲0.0686.77 ▼17.92
Media Library /wp-admin/upload.php3.29 ▲0.0638.38 ▼0.25

Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/wc-sn-zone/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Plugin Name: Senegal Cities for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.48 ▲0.101.69 ▼0.2543.01 ▼4.55
Dashboard /wp-admin2,221 ▲184.86 ▼1.05102.86 ▼12.2439.30 ▼7.14
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0237.52 ▼1.1836.29 ▼1.20
Add New Post /wp-admin/post-new.php1,526 ▼517.49 ▼5.56656.58 ▲22.9060.85 ▲17.42
Media Library /wp-admin/upload.php1,394 ▼64.23 ▲0.01100.44 ▼3.6344.22 ▼2.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.png. Screenshots are stored in the /assets directory.), #2 (This is the second screen shot corresponds to screenshot-2.png.), #3 (This is the third screen shot corresponds to screenshot-3.png)
The official readme.txt might help

wc-sn-zone/metzo_woo_zone.php 92% from 13 tests

The main file in "Plugin Name: Senegal Cities for Woocommerce" v. 0.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-sn-zone.php" instead of "metzo_woo_zone.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
Everything looks great! No dangerous files found in this plugin361 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12214361

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions1
▷ Named functions1100.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
3 PNG files occupy 0.26MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/Screenshot1.png88.20KB33.87KB▼ 61.60%
assets/Screenshot2.png102.50KB40.77KB▼ 60.22%
assets/Screenshot3.png75.10KB28.63KB▼ 61.88%