Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼6.08ms] Passed 4 tests
Analyzing server-side resources used by Glance That
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 43.72 ▲3.95 |
Dashboard /wp-admin | 3.65 ▲0.30 | 51.01 ▼3.78 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 44.73 ▼2.59 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 79.99 ▼20.84 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 35.27 ▲2.89 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Glance That
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,000 ▲254 | 13.60 ▼0.99 | 4.62 ▲3.02 | 43.79 ▲1.98 |
Dashboard /wp-admin | 2,406 ▲235 | 5.84 ▲0.28 | 90.49 ▲6.82 | 44.03 ▲2.99 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▼0.01 | 35.65 ▲1.10 | 32.08 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▼0.31 | 662.05 ▲34.70 | 54.72 ▼4.57 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▼0.09 | 108.85 ▲12.41 | 44.05 ▲3.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/glance-that/glance-that.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots need descriptions #2, #3, #4 in glance-that/assets to your readme.txt
glance-that/glance-that.php Passed 13 tests
The main PHP script in "Glance That" version 4.9 is automatically included on every request by WordPress
52 characters long description:
Adds content control to At a Glance on the Dashboard
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,018 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 441 | 290 | 1,481 |
CSS | 1 | 28 | 1 | 355 |
JavaScript | 1 | 49 | 14 | 182 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 200)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 333.00 |
▷ Minimum class complexity | 333.00 |
▷ Maximum class complexity | 333.00 |
Average method complexity | 12.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 200.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.45% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected