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
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/show-star-sign-widget/show_star_sign.php+453
Function create_function() is deprecated
Server metrics [RAM: ▼1.82MB] [CPU: ▼55.93ms] Passed 4 tests
Server-side resources used by Show Star Sign Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.30 | 5.11 ▼39.96 |
Dashboard /wp-admin | 2.19 ▼1.12 | 5.62 ▼53.06 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 7.68 ▼43.37 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 7.59 ▼87.31 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 5.42 ▼32.74 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 92 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_show_star_sign_widget |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Show Star Sign Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.06 ▼0.17 | 2.05 ▲0.15 | 42.63 ▼6.28 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▼0.01 | 90.67 ▼10.27 | 41.89 ▼5.36 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.00 | 38.99 ▲1.87 | 34.59 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.65 ▲0.33 | 690.45 ▲0.71 | 56.31 ▼0.02 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.00 | 95.93 ▼5.94 | 42.80 ▼3.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/show-star-sign-widget/show_star_sign.php+453
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_show_star_sign_widget
Smoke tests 75% 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 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/show-star-sign-widget/show_star_sign.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: current, sign, sidebar, zodiac, astrology...
show-star-sign-widget/show_star_sign.php 92% from 13 tests
"Show Star Sign Widget" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("show-star-sign-widget.php" instead of "show_star_sign.php")
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
Everything looks great! No dangerous files found in this plugin267 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 171 | 20 | 267 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 8.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 33.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
90 PNG files occupy 0.74MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/000000/showcurrentsign.png | 4.08KB | 1.00KB | ▼ 75.53% |
images/000000/pisces.png | 8.82KB | 4.61KB | ▼ 47.75% |
images/000000/showmysign.png | 3.92KB | 0.90KB | ▼ 77.10% |
images/000000/sagittarius.png | 9.16KB | 5.12KB | ▼ 44.18% |
images/ffffff/scorpio.png | 8.25KB | 4.27KB | ▼ 48.22% |