Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.54ms] Passed 4 tests
An overview of server-side resources used by Planetary Position
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.08 | 40.31 ▼2.76 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.80 ▲2.54 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.61 ▲1.34 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 85.31 ▼9.92 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.26 ▲1.17 |
Planetary Position /wp-admin/options-general.php?page=planetary-position | 3.30 | 29.76 |
Server storage [IO: ▲4.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 9 new options
New WordPress options |
---|
pp_plugin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
pp_ayan |
widget_planetary-position-widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Planetary Position
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲221 | 15.43 ▲1.05 | 106.79 ▲104.83 | 47.13 ▼23.22 |
Dashboard /wp-admin | 2,213 ▲28 | 5.85 ▼0.16 | 109.73 ▲9.87 | 37.85 ▼7.00 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▲0.02 | 40.43 ▼0.56 | 36.48 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,523 ▼19 | 23.55 ▲5.53 | 653.61 ▲41.42 | 49.62 ▲0.12 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.20 ▼0.01 | 96.53 ▲1.44 | 41.84 ▲0.24 |
Planetary Position /wp-admin/options-general.php?page=planetary-position | 927 | 2.05 | 24.25 | 26.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- pp_ayan
- widget_theysaidso_widget
- widget_planetary-position-widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 26 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=planetary-position
- > Notice in wp-content/plugins/planetary-position/views/admin.php+68
Undefined index: pp_ayan
- > GET request to /wp-admin/options-general.php?page=planetary-position
- > Notice in wp-content/plugins/planetary-position/views/admin.php+64
Undefined index: pp_showPanchang
- > GET request to /wp-admin/options-general.php?page=planetary-position
- > Notice in wp-content/plugins/planetary-position/views/admin.php+65
Undefined index: pp_showTable
- > GET request to /wp-admin/options-general.php?page=planetary-position
- > Notice in wp-content/plugins/planetary-position/views/admin.php+66
Undefined index: pp_showWheels
- > GET request to /wp-admin/options-general.php?page=planetary-position
- > Notice in wp-content/plugins/planetary-position/views/admin.php+67
Undefined index: pp_showMoon
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/planetary-position/views/admin.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/planetary-position/widgets/planetary-position-widget.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/planetary-position/class-planetary-position-admin.php:10
- > 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
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
planetary-position/planetary-position.php Passed 13 tests
The entry point to "Planetary Position" version 1.5.2 is a PHP file that has certain tags in its header comment area
37 characters long description:
Plugin to display Planetary Positions
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected17,624 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,038 | 1,276 | 16,762 |
CSS | 2 | 93 | 26 | 540 |
PHP | 6 | 105 | 40 | 316 |
SVG | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 25 | |
▷ Static methods | 7 | 28.00% |
▷ Public methods | 17 | 68.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 32.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 2.90MB with 0.82MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/moon.png | 30.33KB | 30.26KB | 0.23% |
images/zodiac-wheel9.png | 178.53KB | 164.60KB | ▼ 7.80% |
images/nax7.png | 2,760.93KB | 647.22KB | ▼ 76.56% |