Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲1.78MB] [CPU: ▲8.05ms] Passed 4 tests
This is a short check of server-side resources used by Horoscopen (NL) – Astro Media
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.07 ▲1.60 | 53.78 ▲12.59 |
Dashboard /wp-admin | 5.19 ▲1.89 | 59.62 ▲3.48 |
Posts /wp-admin/edit.php | 5.25 ▲1.89 | 69.12 ▲19.29 |
Add New Post /wp-admin/post-new.php | 7.71 ▲1.83 | 93.68 ▲3.18 |
Media Library /wp-admin/upload.php | 5.03 ▲1.80 | 45.49 ▲12.96 |
Server storage [IO: ▲35.29MB] [DB: ▲24.13MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- Filesystem usage must be lower than 25MB (currently using 35.29MB)
Filesystem: 94 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_customimages |
wp_astromedia |
wp_astrocities |
New WordPress options |
---|
can_compress_scripts |
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 Horoscopen (NL) – Astro Media
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,048 ▲286 | 15.17 ▲0.91 | 7.66 ▲5.81 | 39.09 ▼4.40 |
Dashboard /wp-admin | 2,344 ▲167 | 6.37 ▲0.72 | 132.64 ▲39.73 | 96.19 ▲52.56 |
Posts /wp-admin/edit.php | 2,293 ▲190 | 3.66 ▲1.70 | 60.28 ▲20.03 | 68.86 ▲33.77 |
Add New Post /wp-admin/post-new.php | 1,705 ▲180 | 21.32 ▼2.27 | 723.81 ▲67.55 | 38.05 ▼22.59 |
Media Library /wp-admin/upload.php | 1,487 ▲87 | 4.37 ▲0.21 | 92.73 ▼7.15 | 79.52 ▲36.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/astro-media/manpage/content.php
- 35× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astro-media/shortcodes/horoscopes/shortcodes_chineserelationhoroscope.php:744
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astro-media/shortcodes/tarot/shortcodes_tarot_relatielegging.php:632
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astro-media/shortcodes/tarot/shortcodes_tarot_weeklegging_liefde.php:632
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astro-media/shortcodes/tarot/shortcodes_tarot_dagkaart_liefde.php:632
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astro-media/shortcodes/horoscopes/shortcodes_extendedchildhoroscope.php:499
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astro-media/shortcodes/lenormand/shortcodes_lenormand_relatielegging.php:436
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astro-media/shortcodes/horoscopes/shortcodes_starsignshoroscope.php:552
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astro-media/shortcodes/horoscopes/shortcodes_childparenthoroscope.php:658
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astro-media/shortcodes/horoscopes/shortcodes_silentlovehoroscope.php:439
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astro-media/shortcodes/lenormand/shortcodes_lenormand_succeslegging.php:436
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is not present
astro-media/midone.php 85% from 13 tests
This is the main PHP file of "Horoscopen (NL) – Astro Media" version 1.9.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 268 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("astro-media.php" instead of "midone.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin282,208 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 3,505 | 582 | 280,485 |
JavaScript | 5 | 262 | 86 | 1,189 |
CSS | 3 | 85 | 23 | 534 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 66 | |
▷ Named functions | 59 | 89.39% |
▷ Anonymous functions | 7 | 10.61% |
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
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.98MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/horoscopesv2/weegschaal.png | 63.64KB | 18.83KB | ▼ 70.41% |
images/premium.png | 25.13KB | 8.92KB | ▼ 64.52% |
images/horoscopesv2/leeuw.png | 81.67KB | 30.60KB | ▼ 62.53% |
images/horoscopesv2/steenbok.png | 78.21KB | 23.90KB | ▼ 69.45% |
images/placeholder.png | 3.05KB | 1.90KB | ▼ 37.90% |