Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼7.61ms] Passed 4 tests
Analyzing server-side resources used by linkPizza-Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.40 ▼6.61 |
Dashboard /wp-admin | 3.41 ▲0.07 | 45.45 ▼13.51 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.62 ▲0.48 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 91.74 ▼10.78 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.03 ▲0.54 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 18 new options
New WordPress options |
---|
widget_theysaidso_widget |
pzz_link_summary_position |
pzz_link_summary_border_padding |
widget_linkpizza_manager_widget |
pzz_version |
pzz_link_summary_link_color |
pzz_link_summary_layout_type |
theysaidso_admin_options |
pzz_oidc_refresh_token |
pzz_oidc_access_token |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for linkPizza-Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 14.00 ▼0.61 | 2.34 ▲0.40 | 35.25 ▼8.31 |
Dashboard /wp-admin | 2,273 ▲85 | 5.47 ▼0.44 | 108.37 ▲1.38 | 66.18 ▲27.84 |
Posts /wp-admin/edit.php | 2,194 ▲105 | 2.48 ▲0.50 | 39.92 ▼1.27 | 36.64 ▲0.56 |
Add New Post /wp-admin/post-new.php | 6,295 ▲4,762 | 19.43 ▼3.65 | 844.92 ▲245.10 | 37.40 ▼14.59 |
Media Library /wp-admin/upload.php | 1,449 ▲61 | 4.62 ▲0.33 | 102.08 ▲1.12 | 85.40 ▲41.75 |
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
- This plugin did not uninstall successfully, leaving 18 options in the database
- pzz_version
- pzz_link_summary_border_padding
- pzz_oidc_access_token
- pzz_link_summary_border_color
- widget_linkpizza_manager_managed_widget
- db_upgraded
- pzz_link_summary_border_width
- theysaidso_admin_options
- widget_recent-comments
- pzz_link_summary_position
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'OAuth2\\GrantType\\IGrantType' not found in wp-content/plugins/linkpizza-manager/includes/OAuth2/GrantType/AuthorizationCode.php:9
- > PHP Fatal error
Uncaught Error: Interface 'OAuth2\\GrantType\\IGrantType' not found in wp-content/plugins/linkpizza-manager/includes/OAuth2/GrantType/Password.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/linkpizza-manager/widget/class-linkPizza-Manager-managed-widget.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/linkpizza-manager/widget/class-linkPizza-Manager-mediakit-widget.php:13
- > PHP Fatal error
Uncaught Error: Interface 'OAuth2\\GrantType\\IGrantType' not found in wp-content/plugins/linkpizza-manager/includes/OAuth2/GrantType/ClientCredentials.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/linkpizza-manager/widget/class-linkPizza-Manager-widget.php:11
- > PHP Fatal error
Uncaught Error: Interface 'OAuth2\\GrantType\\IGrantType' not found in wp-content/plugins/linkpizza-manager/includes/OAuth2/GrantType/RefreshToken.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
5 plugin tags: automated affiliate links, monetization, linkpizza, affiliate links, affiliate
linkpizza-manager/linkPizza-Manager.php 92% from 13 tests
The entry point to "linkPizza-Manager" version 5.5.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("linkpizza-manager.php" instead of "linkPizza-Manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,730 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 377 | 1,321 | 2,357 |
CSS | 3 | 28 | 1 | 207 |
JavaScript | 4 | 21 | 10 | 138 |
SVG | 2 | 0 | 2 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 5 | 3.91% |
▷ Public methods | 117 | 91.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 8.59% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 46 | |
▷ Global constants | 14 | 30.43% |
▷ Class constants | 32 | 69.57% |
▷ Public constants | 32 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 1.22MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/dollar-sign.png | 5.69KB | 6.33KB | 0.00% |
shortcode/js/Icon-grey.png | 0.70KB | 0.65KB | ▼ 7.01% |
assets/banner-772x250.png | 28.83KB | 12.67KB | ▼ 56.06% |
assets/screenshot-3.png | 271.20KB | 74.11KB | ▼ 72.67% |
admin/assets/Icon-orange.png | 1.38KB | 0.94KB | ▼ 31.77% |