Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/current-star-sign/includes/widget.php+74
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼48.79ms] Passed 4 tests
Server-side resources used by Current Star Sign
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.51 ▼35.15 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.59 ▼42.66 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.64 ▼38.18 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.52 ▼79.16 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.21 ▼26.21 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_cz_sun_sign |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Current Star Sign
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.62 ▼0.97 | 1.72 ▲0.05 | 45.17 ▲1.34 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.18 | 110.49 ▼4.54 | 42.61 ▼2.43 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.99 ▼0.05 | 36.06 ▼0.03 | 31.59 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.32 ▲0.36 | 677.64 ▲10.36 | 59.21 ▲9.02 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.19 ▼0.09 | 95.37 ▼13.36 | 40.03 ▼7.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/current-star-sign/includes/widget.php+74
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_cz_sun_sign
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/current-star-sign/includes/cz_variables.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/current-star-sign/includes/widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/current-star-sign/includes/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/current-star-sign/includes/cz_variables.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/current-star-sign/includes/scripts.php:11
- > PHP Fatal error
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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget dragged to the Sidebar), #2 (Current Star Sign widget in action)
current-star-sign/mmp_current-star-sign.php 85% from 13 tests
This is the main PHP file of "Current Star Sign" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("current-star-sign.php" instead of "mmp_current-star-sign.php")
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
Success! There were no dangerous files found in this plugin133 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 39 | 31 | 120 |
CSS | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
Analyzing 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.39 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ 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 | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 18.73KB | 7.82KB | ▼ 58.23% |
includes/images/virgo.png | 11.84KB | 4.34KB | ▼ 63.34% |
screenshot-1.png | 6.13KB | 2.62KB | ▼ 57.27% |
includes/images/sagittarius.png | 13.70KB | 4.91KB | ▼ 64.20% |
includes/images/aries.png | 10.41KB | 4.11KB | ▼ 60.55% |