Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼1.54ms] Passed 4 tests
Server-side resources used by Pz-LinkCard
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 42.52 ▼2.39 |
Dashboard /wp-admin | 3.69 ▲0.34 | 50.18 ▼13.34 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 52.45 ▲5.85 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 94.87 ▲6.85 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 37.83 ▲3.74 |
Pz LkC Cache /wp-admin/tools.php?page=pz-linkcard-cacheman | 3.95 | 37.75 |
Pz LinkCard /wp-admin/options-general.php?page=pz-linkcard-settings | 4.69 | 41.24 |
Server storage [IO: ▲0.80MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 39 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_pz_linkcard |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Pz_LinkCard_options |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Pz-LinkCard
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲65 | 14.68 ▲0.28 | 1.51 ▼0.37 | 36.19 ▼8.44 |
Dashboard /wp-admin | 2,243 ▲62 | 5.65 ▼0.07 | 89.83 ▼14.86 | 36.71 ▼9.36 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.04 ▲0.10 | 39.56 ▼0.87 | 35.96 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.23 ▲0.08 | 630.32 ▲42.13 | 47.78 ▲0.36 |
Media Library /wp-admin/upload.php | 1,446 ▲43 | 4.23 ▲0.00 | 97.74 ▲0.35 | 41.68 ▲1.97 |
Pz LkC Cache /wp-admin/tools.php?page=pz-linkcard-cacheman | 1,191 | 1.83 | 29.90 | 49.14 |
Pz LinkCard /wp-admin/options-general.php?page=pz-linkcard-settings | 7,118 | 1.91 | 43.63 | 220.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function get_col() on null in wp-content/plugins/pz-linkcard/lib/pz-linkcard-file-import.php:9
- > PHP Warning
Use of undefined constant wp_die - assumed 'wp_die' (this will throw an Error in a future version of PHP) in wp-content/plugins/pz-linkcard/lib/pz-linkcard-cron-alive.php on line 1
- > PHP Warning
Use of undefined constant wp_die - assumed 'wp_die' (this will throw an Error in a future version of PHP) in wp-content/plugins/pz-linkcard/lib/pz-linkcard-modal.php on line 1
- > PHP Warning
Use of undefined constant wp_die - assumed 'wp_die' (this will throw an Error in a future version of PHP) in wp-content/plugins/pz-linkcard/lib/pz-linkcard-init.php on line 1
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/pz-linkcard/lib/pz-linkcard-cacheman-list.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pz-linkcard/lib/pz-linkcard-style.php:3
- > PHP Warning
Use of undefined constant wp_die - assumed 'wp_die' (this will throw an Error in a future version of PHP) in wp-content/plugins/pz-linkcard/lib/pz-linkcard-file-import.php on line 1
- > PHP Warning
Use of undefined constant wp_die - assumed 'wp_die' (this will throw an Error in a future version of PHP) in wp-content/plugins/pz-linkcard/lib/pz-linkcard-settings.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pz-linkcard/lib/pz-linkcard-modal.php:4
- > PHP Warning
Use of undefined constant wp_die - assumed 'wp_die' (this will throw an Error in a future version of PHP) in wp-content/plugins/pz-linkcard/lib/pz-linkcard-settings-validate.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 ("Options screen"), #2 ("Cache manager screen"), #3 ("Edit cache data"), #4 ("The appearance of the 'LinkCard'"), #5 ("Write shortcode and url")
pz-linkcard/pz-linkcard.php 92% from 13 tests
This is the main PHP file of "Pz-LinkCard" version 2.4.8.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path folder was not found ("/language")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin7,485 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 470 | 471 | 5,420 |
PO File | 1 | 622 | 920 | 996 |
CSS | 2 | 22 | 121 | 828 |
JavaScript | 4 | 40 | 38 | 241 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 185)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 566.00 |
▷ Minimum class complexity | 566.00 |
▷ Maximum class complexity | 566.00 |
Average method complexity | 14.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 185.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 43.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 56.10% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 5.94KB | 3.12KB | ▼ 47.48% |
screenshot-3.png | 43.00KB | 19.13KB | ▼ 55.51% |
screenshot-1.png | 67.59KB | 23.30KB | ▼ 65.53% |
img/link.png | 0.25KB | 0.15KB | ▼ 40.32% |
screenshot-2.png | 80.72KB | 30.88KB | ▼ 61.75% |