Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.20MB] [CPU: ▼45.39ms] Passed 4 tests
This is a short check of server-side resources used by My Tips
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.69 | 13.97 ▼31.01 |
Dashboard /wp-admin | 2.82 ▼0.49 | 20.12 ▼33.19 |
Posts /wp-admin/edit.php | 2.82 ▼0.54 | 16.95 ▼36.39 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.07 | 17.34 ▼80.95 |
Media Library /wp-admin/upload.php | 2.82 ▼0.41 | 15.40 ▼21.81 |
配置My Tips /wp-admin/options-general.php?page=mytipsconfig | 2.82 | 19.94 |
Server storage [IO: ▲0.17MB] [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: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
mytips_options |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Tips
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲152 | 13.49 ▼1.15 | 9.76 ▲7.97 | 42.84 ▼1.43 |
Dashboard /wp-admin | 2,202 ▲31 | 5.61 ▲0.09 | 92.31 ▼10.43 | 43.21 ▲1.61 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.97 ▲0.02 | 36.76 ▲1.36 | 37.19 ▲3.75 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.14 ▲0.17 | 624.07 ▼71.43 | 56.98 ▲5.50 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.01 | 98.05 ▼2.83 | 45.75 ▼0.63 |
配置My Tips /wp-admin/options-general.php?page=mytipsconfig | 1,174 | 2.00 | 22.26 | 62.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MyTips::mytips_init() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=mytipsconfig
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MyTips::mytips_init() should not be called statically
- > GET request to /wp-admin/options-general.php?page=mytipsconfig
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MyTips::mytips_add_menu() should not be called statically
- > GET request to /wp-admin/options-general.php?page=mytipsconfig
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MyTips::mytips_admin_page() should not be called statically
- > GET request to /wp-admin/options-general.php?page=mytipsconfig
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=mytipsconfig
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=mytipsconfig
- > Deprecated in wp-content/plugins/my-tips/js/mytips-class.php+78
Non-static method MyTips::mytips_verify_options() should not be called statically
- > GET request to /wp-admin/options-general.php?page=mytipsconfig
- > Deprecated in wp-content/plugins/my-tips/js/mytips-class.php+80
Non-static method MyTips::mytips_get_options() should not be called statically
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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/my-tips/js/jquery.mytips.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to access array offset on value of type bool in wp-content/plugins/my-tips/js/jquery.mytips.php on line 134
- > PHP Notice
Undefined index: load in wp-content/plugins/my-tips/js/jquery.mytips.php on line 127
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/my-tips/js/jquery.mytips.php on line 134
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-tips/mytips.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
Please fix the following attributes:
- Donate link: Invalid url: ""
my-tips/mytips.php 85% from 13 tests
Analyzing the main PHP file in "My Tips" version 1.0.3
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("my-tips.php" instead of "mytips.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 435 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
There were no executable files found in this plugin4,188 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 585 | 783 | 3,249 |
CSS | 1 | 126 | 35 | 412 |
PHP | 3 | 46 | 159 | 358 |
PO File | 2 | 64 | 68 | 169 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 63.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 36.36% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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
No PNG files were detected