Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.83ms] Passed 4 tests
This is a short check of server-side resources used by Astronomy Picture Of the Day
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 48.45 ▲7.53 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.51 ▼3.47 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.34 ▼0.62 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.18 ▼7.17 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.11 ▼0.04 |
Server storage [IO: ▲1.28MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Astronomy Picture Of the Day
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.25 ▼0.04 | 1.64 ▲0.12 | 39.05 ▼0.12 |
Dashboard /wp-admin | 2,208 ▲28 | 5.59 ▼0.07 | 87.77 ▼0.60 | 40.50 ▲4.04 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.14 ▲0.15 | 33.85 ▼4.98 | 32.68 ▼2.27 |
Add New Post /wp-admin/post-new.php | 1,544 ▲13 | 23.25 ▲0.21 | 615.05 ▼54.22 | 88.09 ▲29.65 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.22 ▲0.12 | 101.80 ▲2.95 | 42.98 ▼1.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astronomy-picture-of-the-day/astronomy-picture-of-the-day-shortcodes.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/astronomy-picture-of-the-day/astronomy-picture-of-the-day-shortcodes.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Requires at least: Version not formatted correctly
astronomy-picture-of-the-day/astronomy-picture-of-the-day.php 92% from 13 tests
The main file in "Astronomy Picture Of the Day" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 236 characters long)
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
Everything looks great! No dangerous files found in this plugin328 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 39 | 38 | 164 |
PHP | 5 | 36 | 64 | 107 |
Sass | 1 | 3 | 0 | 24 |
CSS | 2 | 3 | 11 | 19 |
Markdown | 1 | 6 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 1.14MB with 0.66MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 1,113.73KB | 335.35KB | ▼ 69.89% |
images/gpl.png | 3.78KB | 2.57KB | ▼ 31.96% |
images/astronomy_picture_of_the_day_logo.png | 53.69KB | 15.34KB | ▼ 71.43% |