Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.25MB] [CPU: ▼13.08ms] Passed 4 tests
A check of server-side resources used by wp shortcut link and advertisement baner
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.95 ▼1.12 |
Dashboard /wp-admin | 3.35 ▲0.00 | 57.88 ▼6.36 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 52.43 ▲1.28 |
Add New Post /wp-admin/post-new.php | 4.84 ▼1.04 | 58.79 ▼43.76 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.99 ▼1.07 |
Add New /wp-admin/admin.php?page=wpslab_add_new | 2.82 | 19.48 |
shortcut link /wp-admin/admin.php?page=wpslab_all_cat | 3.25 | 38.67 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 51 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wpslab |
wp_wpslab_client |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for wp shortcut link and advertisement baner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,100 ▲314 | 15.46 ▲1.17 | 10.69 ▲8.53 | 42.50 ▼0.14 |
Dashboard /wp-admin | 2,366 ▲189 | 6.23 ▲0.58 | 104.81 ▲4.48 | 39.05 ▼5.25 |
Posts /wp-admin/edit.php | 2,297 ▲197 | 3.43 ▲1.41 | 46.62 ▲10.48 | 30.12 ▼4.41 |
Add New Post /wp-admin/post-new.php | 1,717 ▲191 | 22.50 ▲4.98 | 653.94 ▼2.96 | 29.50 ▼19.10 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.20 ▼0.06 | 84.76 ▼17.47 | 46.71 ▲1.26 |
Add New /wp-admin/admin.php?page=wpslab_add_new | 6,005 | 4.16 | 48.99 | 71.04 |
shortcut link /wp-admin/admin.php?page=wpslab_all_cat | 1,042 | 3.04 | 39.00 | 25.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_wpslab
- wp_wpslab_client
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-shortcut-link/client.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wpslab_all_cat
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'getAttribute')" "TypeError: Cannot read properties of null (reading 'getAttribute')\n at iframedesine (/wp-content/plugins/wp-shortcut-link/js/wpslab.js?ver=6.3.1:547:75)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-shortcut-link/js/wpslab.js?ver=6.3.1:470:1)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=wpslab_all_cat
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'getAttribute')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wordpress, shortcut, plugin, baner, advertisement...
wp-shortcut-link/wp-shortcut-link-advertisement.php 92% from 13 tests
The primary PHP file in "wp shortcut link and advertisement baner" version 1.2.0 is used by WordPress to initiate all plugin functionality
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 ("wp-shortcut-link.php" instead of "wp-shortcut-link-advertisement.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,562 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 173 | 22 | 2,038 |
CSS | 3 | 82 | 7 | 989 |
JavaScript | 3 | 381 | 43 | 485 |
PO File | 1 | 14 | 14 | 50 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
30 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/col633.png | 1.02KB | 0.77KB | ▼ 24.57% |
screenshot-5.png | 7.80KB | 3.83KB | ▼ 50.86% |
img/col552.png | 1.12KB | 0.86KB | ▼ 23.32% |
img/col235.png | 1.12KB | 0.84KB | ▼ 25.30% |
img/col525.png | 1.01KB | 0.81KB | ▼ 19.83% |