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.02MB] [CPU: ▼2.20ms] Passed 4 tests
This is a short check of server-side resources used by PT Variants
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 43.30 ▲2.58 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.56 ▼3.90 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.04 ▲0.72 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.90 ▼5.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.83 ▼0.57 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 9 new options
New WordPress options |
---|
pt_variants_be |
db_upgraded |
pt_variants_version |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
pt_variants_fe |
Browser metrics Passed 4 tests
Checking browser requirements for PT Variants
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.10 | 2.35 ▲0.47 | 44.44 ▼1.88 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▼0.02 | 86.38 ▼17.82 | 42.13 ▼1.99 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.01 | 35.69 ▼4.75 | 35.79 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.22 ▲0.02 | 615.73 ▼70.85 | 57.02 ▲1.37 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.20 ▼0.04 | 103.79 ▼2.74 | 43.07 ▼3.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 9 options in the database
- db_upgraded
- can_compress_scripts
- pt_variants_fe
- pt_variants_version
- theysaidso_admin_options
- widget_recent-posts
- pt_variants_be
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pt-variants/pt-variants.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Options > General page is where you define which variants will be used in each scenario. [Click for larger image view](https://s.w.org/plugins/pt-variants/screenshot-1.jpg))
pt-variants/pt-variants.php 92% from 13 tests
"PT Variants" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 263 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin19,026 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 8,601 | 10,559 | 18,871 |
PHP | 1 | 28 | 36 | 122 |
Markdown | 1 | 24 | 0 | 33 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 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
There are no PNG files in this plugin