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.06MB] [CPU: ▼12.06ms] Passed 4 tests
Server-side resources used by Alkubot - Gamify discounts, sell more and give less at the right time
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.19 ▼9.66 |
Dashboard /wp-admin | 3.38 ▲0.03 | 53.84 ▼15.28 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.93 ▼2.62 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.50 ▼20.67 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.69 ▲4.61 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Alkubot - Gamify discounts, sell more and give less at the right time: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.59 ▼0.65 | 1.56 ▼0.16 | 38.13 ▼4.77 |
Dashboard /wp-admin | 2,224 ▲21 | 4.86 ▼0.01 | 101.67 ▼13.91 | 39.09 ▲0.46 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▼0.01 | 38.16 ▼2.52 | 34.65 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,525 ▼25 | 22.68 ▼0.46 | 669.76 ▼5.99 | 54.52 ▼5.32 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.23 ▼0.09 | 111.16 ▼4.39 | 48.40 ▼2.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/alkubot/admin/views/layouts/loader.php
- > /wp-content/plugins/alkubot/alkubot.php
- > /wp-content/plugins/alkubot/admin/views/layouts/popup.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: message in wp-content/plugins/alkubot/admin/views/layouts/notification.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/alkubot/admin/views/layouts/notification.php:10
- > PHP Warning
include_once(ALKUBOT_ADMIN_VIEWS_PATH/popups/error.php): failed to open stream: No such file or directory in wp-content/plugins/alkubot/admin/views/layouts/popup.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/alkubot/admin/views/popups/success.php:7
- > PHP Warning
include_once(): Failed opening 'ALKUBOT_ADMIN_VIEWS_PATH/popups/success.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/alkubot/admin/views/layouts/popup.php on line 2
- > PHP Warning
Use of undefined constant ALKUBOT_IMAGES_PATH - assumed 'ALKUBOT_IMAGES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/alkubot/admin/views/layouts/loader.php on line 3
- > PHP Warning
Use of undefined constant ALKUBOT_IMAGES_PATH - assumed 'ALKUBOT_IMAGES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/alkubot/admin/views/popups/error.php on line 3
- > PHP Warning
Use of undefined constant ALKUBOT_ADMIN_VIEWS_PATH - assumed 'ALKUBOT_ADMIN_VIEWS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/alkubot/admin/views/layouts/popup.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/alkubot/config.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/alkubot/admin/views/popups/error.php:7
- > PHP Notice
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 94% from 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
alkubot/alkubot.php 92% from 13 tests
"Alkubot - Gamify discounts, sell more and give less at the right time" version 3.0.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:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,749 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 232 | 251 | 1,126 |
CSS | 3 | 16 | 3 | 234 |
Sass | 8 | 25 | 0 | 211 |
PO File | 2 | 33 | 2 | 94 |
JavaScript | 2 | 20 | 2 | 84 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 59 | 84.29% |
▷ Public methods | 43 | 61.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 27 | 38.57% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 25 | |
▷ Global constants | 25 | 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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu-icon.png | 2.91KB | 1.44KB | ▼ 50.47% |
images/yes-alt.png | 0.61KB | 0.54KB | ▼ 12.42% |
images/logo.png | 0.72KB | 0.83KB | 0.00% |
images/popup-close.png | 0.49KB | 0.48KB | ▼ 3.18% |
images/popup-profile.png | 1.32KB | 1.13KB | ▼ 14.25% |