Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/post-favorite-h3/index.php+76
Undefined variable: charset_collate
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.08ms] Passed 4 tests
This is a short check of server-side resources used by Post favorite - H3
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.67 ▼8.43 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.17 ▼5.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.63 ▼3.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.87 ▼15.24 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.45 ▼2.55 |
Follow Settings /wp-admin/options-general.php?page=follow_settings | 3.18 | 25.60 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_fev_add_remove |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Post favorite - H3
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲153 | 13.73 ▼0.55 | 5.80 ▲3.99 | 36.41 ▼13.72 |
Dashboard /wp-admin | 2,210 ▲22 | 4.82 ▼0.07 | 111.11 ▼1.03 | 42.14 ▲0.99 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▲0.02 | 41.17 ▲4.42 | 35.86 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 23.18 ▲4.83 | 614.73 ▲17.56 | 50.90 ▼0.44 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.22 ▲0.06 | 97.25 ▲3.05 | 39.73 ▼0.24 |
Follow Settings /wp-admin/options-general.php?page=follow_settings | 745 | 2.05 | 26.41 | 26.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_fev_add_remove
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=follow_settings
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'follow_settings_callback' not found or invalid function name
SRP 50% 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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/post-favorite-h3/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% 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 your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== post-favorite-h3 ===
)
post-favorite-h3/index.php 92% from 13 tests
This is the main PHP file of "Post favorite - H3" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("post-favorite-h3.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin235 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 12 | 234 |
CSS | 1 | 0 | 3 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/star-disable.png | 2.33KB | 2.04KB | ▼ 12.31% |
img/star.png | 1.81KB | 1.86KB | 0.00% |