Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/biodic-word-of-the-day-widget-spanish/biodic_widget.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼58.78ms] Passed 4 tests
An overview of server-side resources used by BioDic Widget - Diccionario de Biología
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.56 ▼38.62 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.62 ▼45.14 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 5.05 ▼49.74 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.53 ▼101.63 |
Media Library /wp-admin/upload.php | 2.08 ▼1.14 | 5.58 ▼29.39 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_wp_my_plugin |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
BioDic Widget - Diccionario de Biología: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.27 | 1.71 ▼0.21 | 47.85 ▲2.50 |
Dashboard /wp-admin | 2,198 ▲28 | 5.63 ▲0.03 | 87.50 ▼18.20 | 38.95 ▼5.26 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.00 | 35.42 ▼5.19 | 33.43 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 22.87 ▼0.67 | 655.15 ▲23.79 | 64.45 ▲12.40 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.15 ▼0.08 | 110.48 ▲6.62 | 49.65 ▲6.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/biodic-word-of-the-day-widget-spanish/biodic_widget.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_wp_my_plugin
- can_compress_scripts
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/biodic-word-of-the-day-widget-spanish/biodic_widget.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 on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== biodic-word-of-the-day-widget-spanish ===
)
biodic-word-of-the-day-widget-spanish/biodic_widget.php 85% from 13 tests
The entry point to "BioDic Widget - Diccionario de Biología" version 1.6.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("biodic-word-of-the-day-widget-spanish.php" instead of "biodic_widget.php")
- Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin56 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 26 | 56 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 95.43KB | 30.76KB | ▼ 67.77% |