Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▲4.57ms] Passed 4 tests
This is a short check of server-side resources used by Improve Bot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.02 | 340.87 ▲293.97 |
Dashboard /wp-admin | 3.59 ▲0.03 | 52.39 ▼2.07 |
Posts /wp-admin/edit.php | 3.71 ▲0.03 | 55.73 ▲1.38 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.05 | 114.50 ▲14.61 |
Media Library /wp-admin/upload.php | 3.52 ▲0.03 | 44.53 ▲4.35 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Improve Bot
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲101 | 14.40 ▼0.35 | 4.14 ▲2.00 | 41.14 ▼4.73 |
Dashboard /wp-admin | 2,213 ▲39 | 5.68 ▲0.12 | 90.96 ▼7.77 | 47.36 ▲0.46 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.05 ▲0.06 | 41.28 ▼4.42 | 36.45 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,382 ▼166 | 17.11 ▼6.03 | 599.88 ▼29.86 | 61.61 ▲18.98 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.20 ▼0.07 | 110.68 ▼5.93 | 45.05 ▼2.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/improve-bot/improvebot.php:18
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Ejemplo de iFrame en un sitio web.), #2 (Página de Administración.)
improve-bot/improvebot.php 85% from 13 tests
Analyzing the main PHP file in "Improve Bot" version 0.0.1
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("improve-bot.php" instead of "improvebot.php")
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
Success! There were no dangerous files found in this plugin154 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 13 | 128 |
JavaScript | 2 | 6 | 0 | 26 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 22.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin