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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.09ms] Passed 4 tests
An overview of server-side resources used by Postscript
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.07 | 40.56 ▼0.57 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.91 ▼3.07 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.35 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 99.58 ▲9.85 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.51 ▲2.45 |
Postscript /wp-admin/options-general.php?page=postscript | 3.90 | 36.72 |
Server storage [IO: ▲0.37MB] [DB: ▲0.14MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
postscript |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Postscript
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.18 ▼1.19 | 1.94 ▼0.06 | 41.72 ▼11.79 |
Dashboard /wp-admin | 2,213 ▲25 | 5.88 ▼0.00 | 105.89 ▼8.96 | 40.98 ▼7.25 |
Posts /wp-admin/edit.php | 2,072 ▼14 | 2.01 ▼0.04 | 38.77 ▲4.38 | 35.41 ▼1.74 |
Add New Post /wp-admin/post-new.php | 6,493 ▲4,974 | 20.67 ▼2.63 | 896.29 ▲230.63 | 65.98 ▲8.07 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.08 | 95.64 ▼10.47 | 42.77 ▼4.65 |
Postscript /wp-admin/options-general.php?page=postscript | 2,595 | 2.03 | 23.19 | 36.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.14MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=postscript
- > Deprecated in wp-content/plugins/postscript/includes/admin-options.php+801
implode(): Passing glue string after array is deprecated. Swap the parameters
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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postscript/includes/admin-options.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postscript/includes/functions.php:275
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postscript/includes/enqueue-scripts.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postscript/includes/meta-box.php:33
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: javascript, class, style, css, stylesheet...
postscript/postscript.php 92% from 13 tests
The entry point to "Postscript" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 345 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,115 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 251 | 777 | 1,115 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.13MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 17.35KB | 16.40KB | ▼ 5.47% |
assets/screenshot-1.png | 30.88KB | 30.05KB | ▼ 2.70% |
assets/screenshot-2.png | 38.94KB | 37.76KB | ▼ 3.02% |
assets/screenshot-3.png | 49.75KB | 48.92KB | ▼ 1.68% |