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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.75 ▼1.26 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.53 ▲0.17 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.23 ▼1.05 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.37 ▼6.70 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.19 ▼0.36 | 1.68 ▲0.02 | 44.87 ▼2.93 |
Dashboard /wp-admin | 2,192 ▲15 | 5.65 ▲0.05 | 86.85 ▼0.70 | 43.76 ▲5.86 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.01 | 34.02 ▼6.57 | 34.16 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.37 ▲5.15 | 660.62 ▲17.63 | 55.95 ▼13.51 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▲0.03 | 93.16 ▼4.28 | 41.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 42 | 63 |
Markdown | 1 | 5 | 0 | 15 |
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 code | 0.50 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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