Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.29ms] Passed 4 tests
Analyzing server-side resources used by Milestone
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.52 ▼3.03 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.77 ▼4.41 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.26 ▼3.27 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.52 ▼6.46 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.60 ▲3.51 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_fergcorp_milestone |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Milestone
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.26 ▼1.12 | 1.78 ▼0.34 | 43.90 ▼2.83 |
Dashboard /wp-admin | 2,208 ▲20 | 4.87 ▼1.00 | 109.67 ▲3.38 | 39.64 ▼4.93 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.04 ▲0.03 | 33.89 ▼4.20 | 31.38 ▼2.88 |
Add New Post /wp-admin/post-new.php | 1,516 ▲105 | 17.47 ▼0.38 | 688.44 ▲60.05 | 59.34 ▼1.46 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.19 ▼0.01 | 107.49 ▲10.74 | 47.25 ▲4.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_fergcorp_milestone
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/milestone/tests/bootstrap.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/milestone/fergcorp_milestone.php on line 54
- > PHP Fatal error
require_once(): Failed opening required 'fergcorp_milestone.php' (include_path='.:/usr/share/php') in wp-content/plugins/milestone/tests/MilestoneTest.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/milestone/fergcorp_milestone.php:56
- > PHP Warning
require_once(fergcorp_milestone.php): failed to open stream: No such file or directory in wp-content/plugins/milestone/tests/MilestoneTest.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Widget Interface), #2 (Example on Blog)
milestone/fergcorp_milestone.php 92% from 13 tests
The main PHP file in "Milestone" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("milestone.php" instead of "fergcorp_milestone.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin566 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 135 | 72 | 386 |
CSS | 1 | 9 | 0 | 93 |
PO File | 1 | 20 | 38 | 69 |
XML | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 15.92KB | 4.07KB | ▼ 74.45% |
screenshot-1.png | 26.68KB | 7.45KB | ▼ 72.09% |