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.08MB] [CPU: ▼5.04ms] Passed 4 tests
Server-side resources used by VN Links
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.61 ▼6.87 |
Dashboard /wp-admin | 3.38 ▲0.08 | 43.31 ▼2.56 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 46.60 ▼0.65 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.93 ▼10.06 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 38.26 ▲4.90 |
All Links /wp-admin/edit.php?post_type=vn-links | 3.35 | 36.59 |
Add new /wp-admin/post-new.php?post_type=vn-links | 3.34 | 42.79 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_vn-links |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for VN Links
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲77 | 13.25 ▼1.13 | 1.96 ▼0.42 | 40.23 ▼10.68 |
Dashboard /wp-admin | 2,230 ▲42 | 4.87 ▼0.04 | 99.60 ▼25.43 | 40.60 ▼8.66 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.06 ▲0.05 | 34.46 ▼6.81 | 35.58 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,557 ▲17 | 23.35 ▲0.16 | 666.09 ▲66.69 | 55.23 ▲2.83 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.18 ▼0.08 | 108.33 ▲13.79 | 47.95 ▲4.58 |
All Links /wp-admin/edit.php?post_type=vn-links | 1,080 | 1.99 | 31.39 | 30.73 |
Add new /wp-admin/post-new.php?post_type=vn-links | 1,455 | 2.52 | 47.47 | 45.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_vn-links
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% 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 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/vn-links/inc/class-vn-links-legacy-widget.php:10
- > 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 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: codetot, vn, shortcode, links-manager, widget...
vn-links/vn-links.php 77% from 13 tests
Analyzing the main PHP file in "VN Links" version 0.0.2
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0.0" instead of "5.0")
- Domain Path: The domain path folder does not exist ("/languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin245 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 41 | 100 | 235 |
Markdown | 1 | 5 | 0 | 8 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 3 | 16.67% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.55MB with 0.31MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 7.43KB | 3.00KB | ▼ 59.65% |
assets/icon-256x256.png | 10.44KB | 4.37KB | ▼ 58.15% |
assets/screenshot-1.png | 27.08KB | 13.43KB | ▼ 50.42% |
assets/screenshot-2.png | 519.79KB | 244.09KB | ▼ 53.04% |