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
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼139.40ms] Passed 4 tests
This is a short check of server-side resources used by Zim Airtime
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.15 | 36.28 ▼1.05 |
Dashboard /wp-admin | 3.28 ▲0.22 | 47.37 ▲2.28 |
Posts /wp-admin/edit.php | 3.32 ▲0.22 | 43.55 ▲0.31 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 89.99 ▼558.65 |
Media Library /wp-admin/upload.php | 3.16 ▲0.15 | 34.07 ▲1.80 |
Zim Airtime /wp-admin/options-general.php?page=techzim-airtime-settings | 3.13 | 29.97 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_techzim_airtime_widget |
techzim-airtime-use-netone-pinless |
Browser metrics Passed 4 tests
A check of browser resources used by Zim Airtime
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,690 ▲94 | 16.37 ▲0.49 | 8.94 ▼2.24 | 52.68 ▲7.05 |
Dashboard /wp-admin | 2,976 ▲42 | 5.89 ▼0.24 | 147.18 ▼5.41 | 96.13 ▼10.69 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.70 ▼0.01 | 68.53 ▲1.07 | 85.65 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,690 ▼2,034 | 18.46 ▲3.27 | 380.28 ▼86.33 | 102.60 ▼2.78 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.01 ▲0.00 | 161.42 ▲7.71 | 118.67 ▲0.80 |
Zim Airtime /wp-admin/options-general.php?page=techzim-airtime-settings | 1,058 | 2.33 | 56.30 | 65.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 2 options in the database
- widget_techzim_airtime_widget
- techzim-airtime-use-netone-pinless
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/zim-airtime/admin/partials/techzim-airtime-admin-display.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zim-airtime/public/partials/techzim-airtime-public-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/zim-airtime/public/partials/techzim-airtime-diaspora-public-order-cancelled.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/zim-airtime/public/partials/techzim-airtime-diaspora-public-order-received.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/zim-airtime/public/partials/techzim-airtime-public-order-received.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zim-airtime/admin/class-techzim-airtime-widget.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zim-airtime/public/partials/techzim-airtime-diaspora-public-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/zim-airtime/public/partials/techzim-airtime-public-query-received.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: e-commerce
zim-airtime/techzim-airtime.php 85% from 13 tests
"Zim Airtime" version 2.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("zim-airtime.php" instead of "techzim-airtime.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,398 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 277 | 794 | 1,053 |
JavaScript | 5 | 66 | 93 | 342 |
CSS | 4 | 0 | 4 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 5 | 8.93% |
▷ Public methods | 50 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG images were found in this plugin