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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.47MB] [CPU: ▼1.93ms] Passed 4 tests
This is a short check of server-side resources used by Pronamic Client
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 41.82 ▲1.14 |
Dashboard /wp-admin | 4.28 ▲0.98 | 55.82 ▲5.26 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 50.78 ▲3.43 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 94.07 ▼17.05 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 38.58 ▲4.78 |
Server storage [IO: ▲1.76MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 143 new files
Database: no new tables, 7 new options
New WordPress options |
---|
pronamic_client_db_version |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Pronamic Client
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲194 | 14.11 ▼0.67 | 1.79 ▲0.17 | 45.45 ▲0.29 |
Dashboard /wp-admin | 2,338 ▲158 | 5.60 ▲0.08 | 92.93 ▼0.63 | 42.92 ▼0.82 |
Posts /wp-admin/edit.php | 2,174 ▲74 | 1.99 ▼0.03 | 39.35 ▲0.76 | 38.58 ▲4.31 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 23.27 ▲0.22 | 648.99 ▲1.09 | 59.29 ▲5.31 |
Media Library /wp-admin/upload.php | 1,468 ▲68 | 4.18 ▼0.01 | 99.28 ▲1.11 | 39.72 ▼4.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- pronamic_client_db_version
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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)
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/pronamic-client/adminer/adminer.php
- > /wp-content/plugins/pronamic-client/adminer/index.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/pronamic-client/admin/extensions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/pronamic-client/templates/google-tag-manager-head.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pronamic-client/templates/google-analytics-tracking-code.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pronamic-client/admin/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function Automattic\\Jetpack\\Autoloader\\jp4924105b56db68790f4db02e3eaaa819\\al2_12_0\\wp_normalize_path() in wp-content/plugins/pronamic-client/vendor/jetpack-autoloader/class-path-processor.php:73
- > PHP Warning
require_once(wp-content/plugins/pronamic-client/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php): failed to open stream: No such file or directory in wp-content/plugins/pronamic-client/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pronamic-client/admin/email.php:12
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/pronamic-client/vendor/automattic/jetpack-autoloader/src/jetpack-autoloader/class-autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/pronamic-client/vendor/automattic/jetpack-autoloader/src/autoload.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pronamic-client/templates/google-tag-manager-body.php:13
- > PHP Fatal error
Uncaught Error: Class 'Pronamic\\WordPress\\PronamicClient\\Plugin' not found in wp-content/plugins/pronamic-client/admin/dashboard/adminer.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: theme, themes, extensions, extension, client...
pronamic-client/pronamic-client.php Passed 13 tests
This is the main PHP file of "Pronamic Client" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
WordPress plugin for Pronamic clients.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected13,863 lines of code in 123 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 88 | 1,360 | 3,023 | 5,732 |
JSON | 12 | 0 | 0 | 4,688 |
JavaScript | 5 | 768 | 325 | 2,308 |
Markdown | 7 | 219 | 0 | 541 |
PO File | 2 | 438 | 877 | 292 |
CSS | 3 | 34 | 3 | 276 |
XML | 3 | 5 | 0 | 23 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 61 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 377 | |
▷ Static methods | 43 | 11.41% |
▷ Public methods | 321 | 85.15% |
▷ Protected methods | 8 | 2.12% |
▷ Private methods | 48 | 12.73% |
Functions | 225 | |
▷ Named functions | 216 | 96.00% |
▷ Anonymous functions | 9 | 4.00% |
Constants | 12 | |
▷ Global constants | 6 | 50.00% |
▷ Class constants | 6 | 50.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.28MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/github-banner.png | 52.49KB | 52.43KB | 0.12% |
packages/mho79/swipebox/1.4.4/img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |
vendor/pronamic/pronamic-mollie-user-agent/assets/screenshot-1.png | 171.11KB | 92.23KB | ▼ 46.10% |
assets/github-social-preview.png | 64.16KB | 64.11KB | 0.09% |
images/icon-16x16.png | 0.42KB | 0.29KB | ▼ 31.46% |