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
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.19ms] Passed 4 tests
This is a short check of server-side resources used by NokautWL
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.86 ▼4.25 |
Dashboard /wp-admin | 3.38 ▲0.08 | 57.64 ▲4.18 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 60.66 ▲10.13 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 94.32 ▼4.89 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 47.78 ▲9.73 |
NokautWL /wp-admin/options-general.php?page=nokautwl-config | 3.33 | 41.02 |
Server storage [IO: ▲9.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,523 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for NokautWL
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 13.63 ▼0.75 | 12.03 ▲10.24 | 42.51 ▼3.96 |
Dashboard /wp-admin | 2,208 ▲34 | 5.81 ▲0.24 | 95.36 ▲3.27 | 43.85 ▲0.91 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.23 ▲0.24 | 34.43 ▼2.14 | 34.45 ▼3.25 |
Add New Post /wp-admin/post-new.php | 1,547 ▲12 | 23.35 ▲4.93 | 676.33 ▲39.85 | 58.56 ▼6.76 |
Media Library /wp-admin/upload.php | 1,413 ▲19 | 4.35 ▲0.14 | 99.35 ▼4.01 | 41.92 ▲0.03 |
NokautWL /wp-admin/options-general.php?page=nokautwl-config | 1,246 | 1.87 | 30.33 | 40.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/nokautwl/nokaut-wl.php
- 794× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/nokautwl/vendor/twig/twig/lib/Twig/Node/Expression/Binary/NotEqual.php:11
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\AbstractVisitorTestCase' not found in wp-content/plugins/nokautwl/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/JsonVisitorTest.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Nokaut\\ApiKit\\Ext\\Data\\Converter\\Filters\\Callback\\Categories\\CallbackInterface' not found in wp-content/plugins/nokautwl/vendor/nokaut/api-kit/src/Ext/Data/Converter/Filters/Callback/Categories/SortByTotal.php:10
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Http\\Client' not found in wp-content/plugins/nokautwl/vendor/guzzle/guzzle/src/Guzzle/Service/Client.php:25
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/nokautwl/vendor/twig/twig/lib/Twig/Node/Spaceless.php:19
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/nokautwl/vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlHandleTest.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Nokaut\\ApiKit\\ClientApi\\Rest\\Query\\QueryBuilderInterface' not found in wp-content/plugins/nokautwl/vendor/nokaut/api-kit/src/ClientApi/Rest/Query/QueryBuilderAbstract.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/nokautwl/vendor/nokaut/api-kit/tests/Converters/Metadata/OffersMetadataConverterTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Twig_Error' not found in wp-content/plugins/nokautwl/vendor/twig/twig/lib/Twig/Error/Syntax.php:18
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/nokautwl/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/Factory/ServiceDescriptionFactoryTest.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 your attention:
- Screenshots: Add images for these screenshots: #1 (Konfiguracja pluginu. (Plugin configuration.)), #2 (ShortTag - link tekstowy do produktu. (ShortTag - Text link to product.)), #3 (ShortTag - boks z jednym produktem. (ShortTag - single product box.)), #4 (ShortTag - boks z wieloma produktami w jednym wierszu. (ShortTag - multiple products box in one row.)), #5 (ShortTag - boks z wieloma produktami w dwóch wierszach. (ShortTag - multiple products box in two rows.)), #6 (Pasaż handlowy. (Shopping mall.))
nokautwl/nokaut-wl.php 92% from 13 tests
"NokautWL" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("nokautwl.php" instead of "nokaut-wl.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin132,040 lines of code in 1,250 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 947 | 19,000 | 57,343 | 88,520 |
JSON | 60 | 13 | 0 | 17,058 |
CSS | 11 | 193 | 65 | 12,776 |
reStructuredText | 118 | 3,438 | 3,776 | 4,896 |
JavaScript | 52 | 1,117 | 826 | 4,610 |
Markdown | 11 | 388 | 0 | 1,633 |
C | 1 | 166 | 150 | 793 |
Twig | 17 | 42 | 14 | 688 |
XML | 10 | 33 | 13 | 295 |
SVG | 1 | 0 | 0 | 229 |
Ant | 2 | 28 | 1 | 143 |
make | 1 | 24 | 5 | 124 |
HTML | 12 | 16 | 0 | 108 |
Bourne Shell | 1 | 24 | 0 | 55 |
Python | 1 | 22 | 23 | 50 |
YAML | 3 | 10 | 0 | 46 |
C/C++ Header | 1 | 7 | 13 | 11 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 154 | |
Interfaces | 89 | |
Traits | 2 | |
Classes | 876 | |
▷ Abstract classes | 40 | 4.57% |
▷ Concrete classes | 836 | 95.43% |
▷ Final classes | 1 | 0.12% |
Methods | 5,283 | |
▷ Static methods | 230 | 4.35% |
▷ Public methods | 4,777 | 90.42% |
▷ Protected methods | 376 | 7.12% |
▷ Private methods | 130 | 2.46% |
Functions | 220 | |
▷ Named functions | 54 | 24.55% |
▷ Anonymous functions | 166 | 75.45% |
Constants | 171 | |
▷ Global constants | 9 | 5.26% |
▷ Class constants | 162 | 94.74% |
▷ Public constants | 162 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.70MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 6.59KB | 3.04KB | ▼ 53.90% |
vendor/guzzle/guzzle/docs/_static/guzzle-icon.png | 0.78KB | 0.94KB | 0.00% |
screenshot-5.png | 117.97KB | 35.22KB | ▼ 70.14% |
screenshot-4.png | 107.04KB | 38.82KB | ▼ 63.74% |
vendor/guzzle/guzzle/docs/_static/logo.png | 242.92KB | 69.68KB | ▼ 71.32% |