Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.52ms] Passed 4 tests
A check of server-side resources used by Post Bot
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.82 ▲0.58 |
Dashboard /wp-admin | 3.38 ▲0.04 | 48.01 ▼10.30 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 46.08 ▲2.65 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 84.36 ▼14.27 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 37.23 ▲1.93 |
Server storage [IO: ▲0.22MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Post Bot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲155 | 13.36 ▼1.19 | 8.45 ▲6.72 | 46.33 ▲1.58 |
Dashboard /wp-admin | 2,208 ▲27 | 5.50 ▼0.21 | 88.33 ▼8.80 | 39.60 ▲0.40 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.00 ▲0.05 | 32.93 ▼7.60 | 34.31 ▼4.85 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.37 ▲0.32 | 668.44 ▲61.37 | 54.99 ▲1.16 |
Media Library /wp-admin/upload.php | 1,416 ▲22 | 4.14 ▲0.02 | 107.92 ▲12.08 | 48.72 ▲7.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/post-bot/includes/front.php
- > /wp-content/plugins/post-bot/includes/admin.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/post-bot/includes/admin.php on line 12
- > PHP Notice
Undefined variable: roles in wp-content/plugins/post-bot/includes/admin.php on line 15
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/post-bot/includes/admin.php on line 16
- > PHP Notice
Undefined variable: roles in wp-content/plugins/post-bot/includes/admin.php on line 12
- > PHP Warning
Use of undefined constant ASPC_IMG_URL - assumed 'ASPC_IMG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-bot/includes/front.php on line 6
- > PHP Warning
Use of undefined constant ASPC_PLUGIN_URL - assumed 'ASPC_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-bot/includes/front.php on line 11
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/post-bot/includes/admin.php on line 14
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/post-bot/includes/admin.php on line 13
- > PHP Notice
Undefined variable: roles in wp-content/plugins/post-bot/includes/admin.php on line 13
- > PHP Notice
Undefined variable: roles in wp-content/plugins/post-bot/includes/admin.php on line 16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Requires php: Version not formatted correctly
- Screenshots: Please add an image for screenshot #1 (Once plugin is activated click on Post bot on left navigation and choose user role.)
- Contributors: Plugin contributors not specified
post-bot/post-bot.php 92% from 13 tests
The main file in "Post Bot" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin782 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 13 | 51 | 400 |
CSS | 2 | 15 | 17 | 218 |
JavaScript | 1 | 31 | 0 | 164 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
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 | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/LogoBot.png | 12.52KB | 4.29KB | ▼ 65.74% |
assets/images/arrow4.png | 2.70KB | 0.41KB | ▼ 84.92% |
assets/images/ChatBox.png | 7.27KB | 2.79KB | ▼ 61.55% |