Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.91ms] Passed 4 tests
This is a short check of server-side resources used by Links shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 56.40 ▲10.31 |
Dashboard /wp-admin | 3.41 ▲0.11 | 49.44 ▼2.10 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.28 ▲5.32 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 87.66 ▼6.20 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.61 ▼0.67 |
Links Shortcode /wp-admin/link-manager.php?page=links-shortcode-settings | 3.32 | 32.46 |
Add New /wp-admin/link-add.php | 3.32 | 38.93 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 3.33 | 35.23 |
All Links /wp-admin/link-manager.php | 3.36 | 36.99 |
Server storage [IO: ▲0.06MB] [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: 8 new files
Database: no new tables, 16 new options
New WordPress options |
---|
db_upgraded |
linkssc_default_css |
linkssc_order |
widget_links |
widget_recent-comments |
linkssc_template |
widget_recent-posts |
linkssc_fbcolors |
widget_theysaidso_widget |
linkssc_howmany |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Links shortcode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.72 ▲0.09 | 1.98 ▲0.20 | 42.15 ▼3.57 |
Dashboard /wp-admin | 2,227 ▲50 | 5.55 ▼0.12 | 85.47 ▼1.23 | 42.59 ▼1.03 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.01 ▲0.02 | 35.22 ▼2.61 | 38.51 ▲4.68 |
Add New Post /wp-admin/post-new.php | 1,555 ▲20 | 23.15 ▲4.65 | 677.62 ▲23.22 | 59.16 ▼4.85 |
Media Library /wp-admin/upload.php | 1,438 ▲47 | 4.22 ▲0.06 | 103.42 ▲0.57 | 45.52 ▼3.35 |
Links Shortcode /wp-admin/link-manager.php?page=links-shortcode-settings | 1,085 | 2.02 | 30.56 | 37.57 |
Add New /wp-admin/link-add.php | 1,690 | 2.55 | 46.36 | 34.50 |
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category | 1,318 | 2.12 | 25.83 | 30.39 |
All Links /wp-admin/link-manager.php | 1,076 | 1.67 | 22.85 | 32.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_links
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/links-shortcode/links-shortcode.php on line 11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/formatting.php' (include_path='.:/usr/share/php') in wp-content/plugins/links-shortcode/links-shortcode.php on line 11
- > PHP Warning
require_once(ABSPATHWPINC/formatting.php): failed to open stream: No such file or directory in wp-content/plugins/links-shortcode/links-shortcode.php on line 11
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/links-shortcode/links-shortcode.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please describe screenshot #3 in links-shortcode/assets to your readme.txt
- Tags: There are too many tags (11 tag instead of maximum 10)
links-shortcode/links-shortcode.php 92% from 13 tests
The principal PHP file in "Links shortcode" v. 1.8.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
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
Good job! No executable or dangerous file extensions detected657 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 58 | 57 | 440 |
PO File | 1 | 64 | 87 | 163 |
CSS | 1 | 8 | 0 | 54 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
emptystars.png | 2.59KB | 1.95KB | ▼ 24.64% |
fullstars.png | 0.21KB | 0.11KB | ▼ 47.69% |
emptystars-black.png | 2.58KB | 1.92KB | ▼ 25.84% |