Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.95ms] Passed 4 tests
Analyzing server-side resources used by Quantcast Choice
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 44.56 ▲6.05 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.32 ▼4.68 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 50.43 ▼2.02 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 91.43 ▼14.52 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 41.19 ▲5.43 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Quantcast Choice
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲121 | 13.62 ▼0.78 | 2.03 ▲0.28 | 41.07 ▼2.50 |
Dashboard /wp-admin | 2,229 ▲44 | 5.79 ▼0.06 | 102.71 ▼0.30 | 85.06 ▲40.21 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 1.99 ▼0.02 | 39.90 ▼0.43 | 38.49 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 17.58 ▼5.60 | 693.63 ▲96.50 | 49.02 ▼13.08 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.22 ▼0.01 | 96.78 ▼1.77 | 64.54 ▲22.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/quantcast-choice/public/partials/qc-choice.php
- > /wp-content/plugins/quantcast-choice/admin/partials/admin-display.php
- 1× 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/quantcast-choice/public/class-qc-choice-page.php:163
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% 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 to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
quantcast-choice/qc-choice.php 85% from 13 tests
The entry point to "Quantcast Choice" version 2.0.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("quantcast-choice.php" instead of "qc-choice.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,019 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 241 | 697 | 927 |
JavaScript | 3 | 8 | 4 | 72 |
JSON | 1 | 0 | 0 | 18 |
CSS | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 3 | 7.50% |
▷ Public methods | 34 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/quantcast-logo.png | 11.87KB | 5.92KB | ▼ 50.12% |
admin/img/quantcast-choice-wordmark.png | 11.01KB | 5.58KB | ▼ 49.28% |
admin/img/quantcast-icon.png | 7.24KB | 2.71KB | ▼ 62.52% |