Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/horoscope-feeder/horoscop-widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; HoroscopWidget has a deprecated constructor
Server metrics [RAM: ▼2.00MB] [CPU: ▼58.11ms] Passed 4 tests
An overview of server-side resources used by Horoscope Feeder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.27 ▼1.46 | 5.76 ▼45.32 |
Dashboard /wp-admin | 2.29 ▼1.28 | 8.72 ▼45.77 |
Posts /wp-admin/edit.php | 2.29 ▼1.39 | 8.06 ▼42.78 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.86 | 7.47 ▼98.56 |
Media Library /wp-admin/upload.php | 2.29 ▼1.20 | 6.68 ▼29.91 |
Horoscope /wp-admin/options-general.php?page=horoscop-option-page | 2.29 | 5.92 |
Server storage [IO: ▲0.09MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
horoscop_settings |
db_upgraded |
widget_horoscopwidget |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Horoscope Feeder: 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,884 ▲123 | 13.57 ▼1.04 | 8.60 ▲6.60 | 44.36 ▼0.81 |
Dashboard /wp-admin | 2,206 ▲29 | 5.67 ▲0.03 | 96.83 ▼5.21 | 42.07 ▼6.68 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.04 ▲0.05 | 36.96 ▲0.78 | 32.28 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 23.42 ▲0.06 | 641.72 ▼31.14 | 63.80 ▼1.24 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.16 ▼0.04 | 101.81 ▼3.18 | 42.51 ▼2.45 |
Horoscope /wp-admin/options-general.php?page=horoscop-option-page | 1,455 | 1.99 | 40.99 | 46.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/horoscope-feeder/horoscop-widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; HoroscopWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_horoscopwidget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=horoscop-option-page
- > Deprecated in wp-content/plugins/horoscope-feeder/horoscop-widget.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; HoroscopWidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=horoscop-option-page
- > Deprecated in wp-content/plugins/horoscope-feeder/horoscop-widget.php+43
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=horoscop-option-page
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in HoroscopWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=horoscop-option-page
- > 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=horoscop-option-page
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/horoscope-feeder/horoscop-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/horoscope-feeder/horoscop-widget.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=horoscop-option-page
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1 1:28609 "jQuery.Deferred exception: cToggle.live is not a function" "TypeError: cToggle.live is not a function\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/horoscope-feeder/js/admin.js?ver=6.3.1:199:11)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1:2:1594)\n at $.fn.easyTicker (/wp-content/plugins/horoscope-feeder/js/admin.js?ver=6.3.1:185:14)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/horoscope-feeder/js/admin.js?ver=6.3.1:44:8)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1:2:1594)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/horoscope-feeder/js/admin.js?ver=6.3.1:40:39)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=horoscop-option-page
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=6.3.1 1:28721 Uncaught TypeError: cToggle.live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in horoscope-feeder/assets to your readme.txt
horoscope-feeder/horoscop-feeder.php 85% from 13 tests
"Horoscope Feeder" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("horoscope-feeder.php" instead of "horoscop-feeder.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 198 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
There were no executable files found in this plugin1,261 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 64 | 65 | 904 |
JavaScript | 2 | 71 | 16 | 320 |
CSS | 2 | 3 | 2 | 37 |
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.36 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 5.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.70% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logos/rac.png | 5.61KB | 3.55KB | ▼ 36.65% |
logos/berbec.png | 3.54KB | 2.48KB | ▼ 29.93% |
logos/leu.png | 5.37KB | 3.50KB | ▼ 34.77% |
logos/pesti.png | 5.03KB | 3.24KB | ▼ 35.48% |
logos/scorpion.png | 3.81KB | 2.65KB | ▼ 30.44% |