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.03MB] [CPU: ▼7.65ms] Passed 4 tests
This is a short check of server-side resources used by Terminal Africa
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 34.18 ▼9.32 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.89 ▼17.33 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.93 ▼1.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.96 ▼2.43 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.72 ▼0.36 |
Server storage [IO: ▲2.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Terminal Africa
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲48 | 14.31 ▲0.17 | 1.69 ▼0.05 | 38.35 ▼4.88 |
Dashboard /wp-admin | 2,197 ▲26 | 5.53 ▼0.13 | 91.45 ▼5.47 | 39.02 ▼5.01 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.95 ▼0.02 | 40.86 ▼4.12 | 36.81 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,531 ▲4 | 23.04 ▼0.22 | 569.07 ▼120.40 | 65.91 ▲16.96 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.30 ▲0.08 | 98.73 ▼2.51 | 44.19 ▲0.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 28× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/terminal-africa/includes/parts/assets.php
- > /wp-content/plugins/terminal-africa/templates/shipping.php
- > /wp-content/plugins/terminal-africa/templates/error.php
- > /wp-content/plugins/terminal-africa/templates/auth.php
- > /wp-content/plugins/terminal-africa/includes/parts/api.php
- > /wp-content/plugins/terminal-africa/includes/class-terminal-africa.php
- > /wp-content/plugins/terminal-africa/templates/shipment-button/cancel-shipment.php
- > /wp-content/plugins/terminal-africa/app/Terminal/Core/TemplateLoader.php
- > /wp-content/plugins/terminal-africa/includes/terminalLogHandler.php
- > /wp-content/plugins/terminal-africa/templates/shipment-button/duplicate-shipment.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in terminal-africa/assets to your readme.txt
terminal-africa/terminal-africa.php Passed 13 tests
The entry point to "Terminal Africa" version 1.11.3 is a PHP file that has certain tags in its header comment area
54 characters long description:
Terminal Africa Shipping Method Plugin for WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected19,318 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 545 | 2,362 | 7,455 |
JavaScript | 17 | 269 | 2,300 | 6,718 |
CSS | 9 | 718 | 68 | 4,882 |
Markdown | 1 | 105 | 0 | 191 |
JSON | 1 | 0 | 0 | 37 |
SVG | 7 | 0 | 1 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 42.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 6 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 190 | |
▷ Static methods | 70 | 36.84% |
▷ Public methods | 182 | 95.79% |
▷ Protected methods | 7 | 3.68% |
▷ Private methods | 1 | 0.53% |
Functions | 50 | |
▷ Named functions | 45 | 90.00% |
▷ Anonymous functions | 5 | 10.00% |
Constants | 16 | |
▷ Global constants | 11 | 68.75% |
▷ Class constants | 5 | 31.25% |
▷ Public constants | 5 | 100.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
12 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/check.png | 2.34KB | 0.95KB | ▼ 59.16% |
assets/img/6154615bd81a7d57e6fe1cd2_ProductCircleBG.png | 16.58KB | 6.97KB | ▼ 57.95% |
assets/img/logo-footer.png | 46.25KB | 19.45KB | ▼ 57.95% |
assets/img/WalletIcon.png | 1.84KB | 0.95KB | ▼ 48.33% |
assets/img/logo-full.png | 36.99KB | 19.20KB | ▼ 48.08% |