Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼7.06ms] Passed 4 tests
Analyzing server-side resources used by TRS Sales Count Down
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 44.82 ▲4.06 |
Dashboard /wp-admin | 3.59 ▲0.29 | 48.46 ▼7.32 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 49.75 ▼2.65 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 84.05 ▼17.99 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 39.19 ▼0.26 |
Server storage [IO: ▲8.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 1,101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TRS Sales Count Down
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲172 | 13.52 ▼0.86 | 8.67 ▲6.91 | 39.68 ▼6.52 |
Dashboard /wp-admin | 2,231 ▲51 | 5.82 ▲0.15 | 88.72 ▼8.22 | 39.40 ▼7.03 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.29 ▲0.26 | 36.57 ▼1.12 | 34.41 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,555 ▲25 | 23.25 ▲0.08 | 666.40 ▼6.52 | 36.27 ▼21.38 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.46 ▲0.27 | 96.44 ▼12.70 | 42.38 ▼5.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/trs-sales-count-down/vendor/symfony/translation/Resources/bin/translation-status.php
- 68× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/trs-sales-count-down/vendor/symfony/translation/Exception/LogicException.php:19
- > PHP Fatal error
Trait 'Carbon\\Traits\\Cast' not found in wp-content/plugins/trs-sales-count-down/vendor/nesbot/carbon/src/Carbon/Traits/Mutability.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/trs-sales-count-down/vendor/symfony/translation/Dumper/IcuResFileDumper.php:21
- > PHP Fatal error
Trait 'Carbon\\Traits\\ObjectInitialisation' not found in wp-content/plugins/trs-sales-count-down/vendor/nesbot/carbon/src/Carbon/Traits/Serialization.php on line 32
- > PHP Notice
Undefined index: argv in wp-content/plugins/trs-sales-count-down/vendor/symfony/translation/Resources/bin/translation-status.php on line 47
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/trs-sales-count-down/vendor/symfony/translation/Loader/IniFileLoader.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Loader\\LoaderInterface' not found in wp-content/plugins/trs-sales-count-down/vendor/symfony/translation/Loader/ArrayLoader.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\Translation\\TranslatorInterface' not found in wp-content/plugins/trs-sales-count-down/vendor/symfony/translation/IdentityTranslator.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Reader\\TranslationReaderInterface' not found in wp-content/plugins/trs-sales-count-down/vendor/symfony/translation/Reader/TranslationReader.php:23
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/trs-sales-count-down/vendor/symfony/translation/Dumper/PoFileDumper.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Screenshots: These screenshots need descriptions #1, #2, #3 in trs-sales-count-down/assets to your readme.txt
trs-sales-count-down/class-trs-sales-count-down.php 69% from 13 tests
"TRS Sales Count Down" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("trs-sales-count-down.php" instead of "class-trs-sales-count-down.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.5")
- Domain Path: The domain path folder was not found ("/languages/")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/trs-sales-count-down/vendor/bin/carbon.bat
- ☣ wp-content/plugins/trs-sales-count-down/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 760 | 5,654 | 22,872 | 31,104 |
XSD | 3 | 92 | 48 | 2,803 |
CSS | 9 | 267 | 91 | 1,224 |
JSON | 7 | 0 | 0 | 625 |
Markdown | 7 | 152 | 0 | 405 |
JavaScript | 6 | 37 | 51 | 363 |
XML | 1 | 0 | 0 | 45 |
DOS Batch | 2 | 0 | 0 | 8 |
YAML | 2 | 0 | 1 | 8 |
Bourne Shell | 1 | 3 | 1 | 6 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 139)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 139.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 15 | |
Traits | 21 | |
Classes | 77 | |
▷ Abstract classes | 4 | 5.19% |
▷ Concrete classes | 73 | 94.81% |
▷ Final classes | 2 | 2.74% |
Methods | 1,349 | |
▷ Static methods | 306 | 22.68% |
▷ Public methods | 1,181 | 87.55% |
▷ Protected methods | 92 | 6.82% |
▷ Private methods | 76 | 5.63% |
Functions | 253 | |
▷ Named functions | 50 | 19.76% |
▷ Anonymous functions | 203 | 80.24% |
Constants | 74 | |
▷ Global constants | 4 | 5.41% |
▷ Class constants | 70 | 94.59% |
▷ Public constants | 70 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/simple-style.png | 5.28KB | 2.66KB | ▼ 49.72% |
assets/images/nobe-style.png | 11.77KB | 6.60KB | ▼ 43.94% |
assets/images/fly-out-styles.png | 4.33KB | 1.92KB | ▼ 55.59% |
assets/images/white-block.png | 11.94KB | 4.72KB | ▼ 60.48% |
assets/images/flip-modern.png | 5.03KB | 2.75KB | ▼ 45.45% |