89% woocommerce-egypt-cities

Code Review | Woocommerce Egypt Citites

WordPress plugin Woocommerce Egypt Citites scored89%from 54 tests.

About plugin

  • Plugin page: woocommerce-egypt...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-5.4
  • WordPress version: 6.3.1
  • First release: Sep 12, 2013
  • Latest release: Apr 20, 2020
  • Number of updates: 11
  • Update frequency: every 219.3 days
  • Top authors: mmounirf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,250 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
Installer ran successfully

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

A check of server-side resources used by Woocommerce Egypt Citites
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.75 ▼1.26
Dashboard /wp-admin3.34 ▲0.0351.53 ▲0.17
Posts /wp-admin/edit.php3.39 ▲0.0350.23 ▼1.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.37 ▼6.70
Media Library /wp-admin/upload.php3.26 ▲0.0337.39 ▲4.45

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Woocommerce Egypt Citites
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.19 ▼0.361.68 ▲0.0244.87 ▼2.93
Dashboard /wp-admin2,192 ▲155.65 ▲0.0586.85 ▼0.7043.76 ▲5.86
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0134.02 ▼6.5734.16 ▼1.07
Add New Post /wp-admin/post-new.php1,526 ▼1123.37 ▲5.15660.62 ▲17.6355.95 ▼13.51
Media Library /wp-admin/upload.php1,400 ▼34.21 ▲0.0393.16 ▼4.2841.12 ▼1.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: cities, calculator, addon, egypt, shipping...

woocommerce-egypt-cities/woocommerce-eg-cities.php 69% from 13 tests

The main PHP script in "Woocommerce Egypt Citites" version 2.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.2")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-egypt-cities.php" instead of "woocommerce-eg-cities.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 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
No dangerous file extensions were detected78 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP164263
Markdown15015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin