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: ▲1.31MB] [CPU: ▲5.61ms] Passed 4 tests
A check of server-side resources used by NearSt for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 40.10 ▲1.01 |
Dashboard /wp-admin | 5.03 ▲1.68 | 64.72 ▲4.13 |
Posts /wp-admin/edit.php | 5.09 ▲1.72 | 67.07 ▲16.57 |
Add New Post /wp-admin/post-new.php | 7.55 ▲1.66 | 100.90 ▲4.07 |
Media Library /wp-admin/upload.php | 4.94 ▲1.70 | 48.48 ▲13.24 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 350 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
nearst_auto_update_enabled |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for NearSt for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.72 ▲0.51 | 2.22 ▲0.68 | 43.89 ▲4.09 |
Dashboard /wp-admin | 2,206 ▲32 | 5.52 ▼0.14 | 103.88 ▲16.44 | 43.41 ▲4.12 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.01 ▼0.02 | 43.08 ▲1.80 | 40.63 ▲4.34 |
Add New Post /wp-admin/post-new.php | 1,539 ▲1 | 23.42 ▲5.24 | 675.84 ▲67.57 | 64.78 ▼2.98 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.18 ▲0.04 | 99.95 ▲3.54 | 44.35 ▲0.69 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- nearst_auto_update_enabled
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 140× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\ConditionalExpression' not found in wp-content/plugins/nearst-for-woocommerce/vendor/twig/twig/src/Node/Expression/NullCoalesceExpression.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/nearst-for-woocommerce/vendor/twig/twig/src/NodeVisitor/SandboxNodeVisitor.php:34
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/nearst-for-woocommerce/vendor/twig/twig/src/Node/Expression/Binary/ModBinary.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/nearst-for-woocommerce/vendor/twig/twig/src/Node/Expression/Binary/InBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/nearst-for-woocommerce/vendor/twig/twig/src/Profiler/Node/EnterProfileNode.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/nearst-for-woocommerce/vendor/twig/twig/src/Node/Expression/Binary/SpaceshipBinary.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\Sandbox\\SecurityPolicyInterface' not found in wp-content/plugins/nearst-for-woocommerce/vendor/twig/twig/src/Sandbox/SecurityPolicy.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/nearst-for-woocommerce/vendor/twig/twig/src/TokenParser/IncludeTokenParser.php:28
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/nearst-for-woocommerce/vendor/twig/twig/src/Node/Expression/Binary/BitwiseOrBinary.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/nearst-for-woocommerce/vendor/twig/twig/src/Node/ModuleNode.php:29
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #1 is required in nearst-for-woocommerce/assets to your readme.txt
nearst-for-woocommerce/nearst-for-woocommerce.php Passed 13 tests
The entry point to "NearSt for WooCommerce" version 1.2.4 is a PHP file that has certain tags in its header comment area
44 characters long description:
Helping high street shops sell more locally.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin19,138 lines of code in 338 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 203 | 2,845 | 4,455 | 15,102 |
reStructuredText | 113 | 2,413 | 2,345 | 2,912 |
JSON | 5 | 0 | 0 | 391 |
YAML | 3 | 50 | 33 | 200 |
HTML | 5 | 6 | 0 | 159 |
CSS | 1 | 25 | 0 | 135 |
make | 1 | 24 | 5 | 124 |
Bourne Shell | 1 | 6 | 1 | 43 |
Python | 1 | 73 | 165 | 33 |
Markdown | 2 | 8 | 0 | 17 |
SVG | 2 | 0 | 0 | 14 |
JavaScript | 1 | 0 | 0 | 8 |
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.48 |
Average class complexity | 8.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 11 | |
Traits | 0 | |
Classes | 177 | |
▷ Abstract classes | 11 | 6.21% |
▷ Concrete classes | 166 | 93.79% |
▷ Final classes | 57 | 34.34% |
Methods | 893 | |
▷ Static methods | 93 | 10.41% |
▷ Public methods | 771 | 86.34% |
▷ Protected methods | 49 | 5.49% |
▷ Private methods | 73 | 8.17% |
Functions | 130 | |
▷ Named functions | 110 | 84.62% |
▷ Anonymous functions | 20 | 15.38% |
Constants | 52 | |
▷ Global constants | 4 | 7.69% |
▷ Class constants | 48 | 92.31% |
▷ Public constants | 48 | 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
No PNG files were detected