Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > User deprecated in wp-content/plugins/priornotify/vendor/scssphp/scssphp/src/Compiler.php+5479
The method "setFormatter" is deprecated. Use "setOutputStyle" instead.
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.45ms] Passed 4 tests
An overview of server-side resources used by PriorNotify
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.09 ▼7.84 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.53 ▼4.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.16 ▼4.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.53 ▲4.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.69 ▼1.09 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- Illegal file modification detected: 1 file (4.63KB) outside of "wp-content/plugins/priornotify/" and "wp-content/uploads/"
- (new file) wp-admin/ArraypriorNotify.min.css
Filesystem: 429 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by PriorNotify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.18 ▼1.20 | 1.81 ▼0.31 | 42.20 ▼7.00 |
Dashboard /wp-admin | 2,206 ▲17 | 5.90 ▲0.77 | 105.05 ▼15.23 | 41.84 ▼5.94 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.00 | 40.32 ▲3.14 | 35.18 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,519 ▼17 | 23.56 ▲0.40 | 670.15 ▼18.11 | 51.86 ▼5.53 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.04 | 105.74 ▼7.29 | 47.12 ▲1.24 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- 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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/priornotify/priorNotify-plugin.php
- 164× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/priornotify/vendor/twig/twig/src/Node/Expression/Binary/FloorDivBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/priornotify/vendor/twig/twig/src/TokenParser/DoTokenParser.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/priornotify/vendor/twig/twig/src/Node/Expression/Binary/EqualBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/priornotify/vendor/twig/twig/src/Node/Expression/Binary/LessBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/priornotify/vendor/twig/twig/src/TokenParser/UseTokenParser.php:33
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\Config' not found in wp-content/plugins/priornotify/vendor/twig/twig/.php-cs-fixer.dist.php:3
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/priornotify/vendor/twig/twig/src/Node/Expression/Test/ConstantTest.php:26
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/priornotify/vendor/twig/twig/src/Profiler/Node/LeaveProfileNode.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/priornotify/vendor/twig/twig/src/Extension/StagingExtension.php:27
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/priornotify/vendor/symfony/yaml/Command/LintCommand.php:33
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: drinks, wine, import, food, fda...
priornotify/priorNotify-plugin.php 85% from 13 tests
"PriorNotify" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("priornotify.php" instead of "priorNotify-plugin.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected33,448 lines of code in 412 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 267 | 6,470 | 9,889 | 28,278 |
reStructuredText | 114 | 2,494 | 2,409 | 2,934 |
JSON | 9 | 0 | 0 | 915 |
Markdown | 10 | 187 | 0 | 372 |
Sass | 1 | 38 | 10 | 341 |
YAML | 4 | 50 | 33 | 214 |
make | 1 | 24 | 5 | 124 |
JavaScript | 1 | 21 | 1 | 118 |
Twig | 1 | 15 | 0 | 69 |
Bourne Shell | 1 | 6 | 1 | 43 |
Python | 1 | 73 | 165 | 33 |
XML | 1 | 1 | 5 | 6 |
CSS | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,431)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 199)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 19.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,431.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 199.00 |
Code structure | ||
---|---|---|
Namespaces | 45 | |
Interfaces | 15 | |
Traits | 0 | |
Classes | 229 | |
▷ Abstract classes | 13 | 5.68% |
▷ Concrete classes | 216 | 94.32% |
▷ Final classes | 64 | 29.63% |
Methods | 1,481 | |
▷ Static methods | 146 | 9.86% |
▷ Public methods | 969 | 65.43% |
▷ Protected methods | 355 | 23.97% |
▷ Private methods | 157 | 10.60% |
Functions | 202 | |
▷ Named functions | 158 | 78.22% |
▷ Anonymous functions | 44 | 21.78% |
Constants | 155 | |
▷ Global constants | 7 | 4.52% |
▷ Class constants | 148 | 95.48% |
▷ Public constants | 146 | 98.65% |
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
1 PNG file occupies 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 51.85KB | 26.87KB | ▼ 48.17% |