Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.99ms] Passed 4 tests
Server-side resources used by Glass It Price Tracker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 47.84 ▼3.42 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.15 ▼3.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.04 ▲0.82 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.21 ▼5.41 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.73 ▼0.02 |
Glass It Options /wp-admin/options-general.php?page=GlassIt_Plugin_Options | 3.25 | 34.14 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
GlassIt_1.0.5_KEY |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Glass It Price Tracker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.83 ▲0.45 | 1.83 ▼0.15 | 44.82 ▼1.49 |
Dashboard /wp-admin | 2,218 ▲27 | 4.87 ▼0.18 | 109.09 ▲3.27 | 42.22 ▲2.22 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.08 ▲0.05 | 39.14 ▲3.15 | 34.60 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.36 ▼0.02 | 634.50 ▼43.00 | 52.40 ▲0.46 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.27 ▲0.04 | 107.93 ▲2.62 | 45.33 ▼0.03 |
Glass It Options /wp-admin/options-general.php?page=GlassIt_Plugin_Options | 798 | 2.07 | 25.49 | 26.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- GlassIt_1.0.5_KEY
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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 everything seems fine, this is not an exhaustive test
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/glass-it-price-tracker/glassit_admin.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/glass-it-price-tracker/glassit.php:25
- > 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 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: price, competitor, history, discount, monitor...
glass-it-price-tracker/glassit.php 77% from 13 tests
"Glass It Price Tracker" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("glass-it-price-tracker.php" instead of "glassit.php")
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.2")
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
Success! There were no dangerous files found in this plugin1,231 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 203 | 199 | 894 |
PHP | 2 | 25 | 14 | 163 |
HTML | 1 | 35 | 2 | 106 |
JavaScript | 1 | 6 | 0 | 67 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) help/__MACOSX/assets/blueprint-css/plugins/link-icons/icons/._doc.png | 0.23KB | 0.00KB | ▼ 100.00% |
help/assets/blueprint-css/plugins/buttons/icons/tick.png | 0.52KB | 0.52KB | 0.00% |
help/assets/blueprint-css/plugins/buttons/icons/cross.png | 0.64KB | 0.72KB | 0.00% |
(invalid) help/__MACOSX/assets/blueprint-css/plugins/buttons/icons/._tick.png | 0.23KB | 0.00KB | ▼ 100.00% |
(invalid) help/__MACOSX/assets/blueprint-css/plugins/link-icons/icons/._external.png | 0.23KB | 0.00KB | ▼ 100.00% |