Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Error in wp-content/plugins/wp-horoscope/wpHoroscope_Widget.php+9
Uncaught Error: Class 'scbWidget' not found in wp-content/plugins/wp-horoscope/wpHoroscope_Widget.php:9
Stack trace:
#0 wp-content/plugins/wp-horoscope/wp-horoscope.php(14): include_once()
#1 wp-content/plugins/wp-horoscope/scb/load.php(77): _wphoroscope_init()
#2 wp-content/plugins/wp-horoscope/scb/load.php(36): scbLoad4::load()
#3 wp-content/plugins/wp-horoscope/scb/load.php(90): scbLoad4::init()
#4 wp-content/plugins/wp-horoscope/wp-horoscope.php(24): scb_init()
#5 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#6 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.35ms] Passed 4 tests
This is a short check of server-side resources used by WP Horoscope
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.87 ▼4.08 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.35 ▼5.42 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.68 ▼1.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.26 ▼6.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.63 ▲0.74 |
Server storage [IO: ▲23.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Horoscope
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.14 | 1.71 ▲0.06 | 42.73 ▼5.72 |
Dashboard /wp-admin | 2,206 ▲18 | 4.89 ▼0.04 | 96.29 ▼16.46 | 40.10 ▼1.29 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.03 ▲0.01 | 39.09 ▲2.55 | 34.35 ▲1.20 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.03 ▼5.19 | 584.93 ▼96.74 | 48.30 ▼4.17 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.02 | 95.44 ▼13.36 | 42.45 ▼4.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-horoscope/scb/Widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-horoscope/shortcode.php:3
- > PHP Fatal error
Uncaught Error: Class 'scbWidget' not found in wp-content/plugins/wp-horoscope/wpHoroscope_Widget.php:9
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/wp-horoscope/scb/BoxesPage.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-horoscope/scb/load.php:32
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (shortcut), #2 (widget)
wp-horoscope/wp-horoscope.php Passed 13 tests
This is the main PHP file of "WP Horoscope" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
WP Horoscope giúp hiển thị thông tin trong ngày của các cung hoàng đạo.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,777 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 605 | 786 | 2,718 |
CSS | 1 | 4 | 1 | 37 |
JSON | 1 | 0 | 0 | 22 |
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.35 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 5 | 21.74% |
▷ Concrete classes | 18 | 78.26% |
▷ Final classes | 0 | 0.00% |
Methods | 185 | |
▷ Static methods | 56 | 30.27% |
▷ Public methods | 145 | 78.38% |
▷ Protected methods | 29 | 15.68% |
▷ Private methods | 11 | 5.95% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 2.18MB with 1.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sutu.png | 18.01KB | 6.30KB | ▼ 65.05% |
images/songtu.png | 18.12KB | 6.33KB | ▼ 65.04% |
images/nhanma.png | 12.69KB | 5.24KB | ▼ 58.71% |
images/maket.png | 15.71KB | 5.87KB | ▼ 62.62% |
images/xunu.png | 17.21KB | 5.97KB | ▼ 65.29% |