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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼6.13ms] Passed 4 tests
Server-side resources used by Subway - Private Site Option
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 43.03 ▼0.27 |
Dashboard /wp-admin | 3.49 ▲0.19 | 47.84 ▼2.77 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 49.20 ▼1.23 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 88.03 ▼20.23 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.08 ▲7.74 |
Subway /wp-admin/options-general.php?page=subway | 3.39 | 37.70 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Subway - Private Site Option: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.48 ▼0.10 | 1.76 ▲0.15 | 44.42 ▲4.64 |
Dashboard /wp-admin | 2,210 ▲22 | 5.80 ▼0.10 | 98.10 ▼3.13 | 40.00 ▼3.82 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 39.17 ▼2.28 | 34.75 ▼2.15 |
Add New Post /wp-admin/post-new.php | 6,283 ▲4,750 | 19.31 ▼3.76 | 892.74 ▲264.49 | 54.11 ▼1.34 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.03 | 94.02 ▼5.13 | 42.05 ▼0.32 |
Subway /wp-admin/options-general.php?page=subway | 971 | 2.11 | 29.45 | 31.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Post Settings), #2 (Admin Settings (Thrive WordPress Theme)), #3 (Sample Form (Thrive WordPress Theme))
subway/subway.php 92% from 13 tests
"Subway - Private Site Option" version 2.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 299 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
Everything looks great! No dangerous files found in this plugin1,800 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 429 | 719 | 1,033 |
PO File | 3 | 151 | 151 | 547 |
JavaScript | 2 | 60 | 28 | 126 |
CSS | 2 | 4 | 2 | 52 |
Markdown | 1 | 17 | 0 | 34 |
YAML | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
Analyzing 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.38 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 9 | 100.00% |
Methods | 40 | |
▷ Static methods | 16 | 40.00% |
▷ Public methods | 38 | 95.00% |
▷ Protected methods | 1 | 2.50% |
▷ Private methods | 1 | 2.50% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin