Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.56MB] [CPU: ▲12.32ms] Passed 4 tests
A check of server-side resources used by Paperdork voor WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 59.76 ▲19.03 |
Dashboard /wp-admin | 3.87 ▲0.57 | 61.97 ▲10.90 |
Posts /wp-admin/edit.php | 3.90 ▲0.55 | 64.80 ▲17.23 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 99.10 ▲2.22 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 52.73 ▲18.93 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 327 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Paperdork voor WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲153 | 13.84 ▼0.53 | 6.16 ▲4.23 | 37.52 ▼5.81 |
Dashboard /wp-admin | 2,210 ▲21 | 4.88 ▼0.29 | 109.45 ▼0.01 | 39.53 ▼1.26 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.00 | 40.55 ▲4.09 | 36.13 ▲2.24 |
Add New Post /wp-admin/post-new.php | 1,518 ▼3 | 17.38 ▼5.68 | 680.98 ▲2.41 | 55.08 ▼0.50 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.23 ▼0.01 | 95.04 ▼4.36 | 43.09 ▼0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 163× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/paperdork/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/paperdork/vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/paperdork/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/paperdork/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/paperdork/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/paperdork/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Class 'League\\OAuth2\\Client\\Grant\\AbstractGrant' not found in wp-content/plugins/paperdork/vendor/league/oauth2-client/src/Grant/Password.php:22
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/paperdork/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/paperdork/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/paperdork/vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: facturen, paperdork, invoices
paperdork/functions.php 85% from 13 tests
Analyzing the main PHP file in "Paperdork voor WooCommerce" version 1.7.1
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paperdork.php" instead of "functions.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 209 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected37,034 lines of code in 310 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 268 | 3,293 | 8,078 | 31,584 |
Markdown | 14 | 1,177 | 0 | 3,488 |
JSON | 13 | 1 | 0 | 1,582 |
YAML | 8 | 53 | 6 | 214 |
CSS | 1 | 24 | 8 | 71 |
JavaScript | 3 | 24 | 19 | 63 |
XML | 1 | 0 | 0 | 19 |
Dockerfile | 1 | 8 | 0 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 19 | |
Traits | 9 | |
Classes | 211 | |
▷ Abstract classes | 3 | 1.42% |
▷ Concrete classes | 208 | 98.58% |
▷ Final classes | 24 | 11.54% |
Methods | 1,080 | |
▷ Static methods | 164 | 15.19% |
▷ Public methods | 825 | 76.39% |
▷ Protected methods | 105 | 9.72% |
▷ Private methods | 150 | 13.89% |
Functions | 174 | |
▷ Named functions | 73 | 41.95% |
▷ Anonymous functions | 101 | 58.05% |
Constants | 204 | |
▷ Global constants | 79 | 38.73% |
▷ Class constants | 125 | 61.27% |
▷ Public constants | 125 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin