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.56MB] [CPU: ▼15.14ms] Passed 4 tests
An overview of server-side resources used by Link Exchange Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 40.92 ▲1.94 |
Dashboard /wp-admin | 3.44 ▲0.13 | 48.81 ▼1.83 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.13 ▲4.31 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.61 | 34.05 ▼64.96 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.40 ▲5.95 |
All Links /wp-admin/edit.php?post_type=link_exchange | 3.40 | 35.36 |
Settings /wp-admin/edit.php?post_type=link_exchange&page=link_exchange_settings | 3.33 | 30.42 |
Help /wp-admin/edit.php?post_type=link_exchange&page=link_exchange_help | 3.33 | 30.20 |
Add New /wp-admin/post-new.php?post_type=link_exchange | 3.22 | 31.38 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Link Exchange Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲106 | 13.15 ▼1.44 | 1.67 ▼0.09 | 43.46 ▼3.83 |
Dashboard /wp-admin | 2,252 ▲64 | 5.89 ▼0.01 | 114.78 ▲13.15 | 77.33 ▲35.84 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.00 ▲0.00 | 36.15 ▼0.19 | 31.36 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,705 ▲172 | 22.52 ▼0.64 | 724.11 ▲110.56 | 63.85 ▲12.87 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.23 ▼0.12 | 102.38 ▲1.25 | 72.08 ▲29.64 |
All Links /wp-admin/edit.php?post_type=link_exchange | 1,104 | 1.94 | 31.54 | 32.65 |
Settings /wp-admin/edit.php?post_type=link_exchange&page=link_exchange_settings | 1,014 | 2.15 | 27.06 | 24.92 |
Help /wp-admin/edit.php?post_type=link_exchange&page=link_exchange_help | 863 | 2.14 | 24.94 | 27.85 |
Add New /wp-admin/post-new.php?post_type=link_exchange | 2,334 | 7.65 | 166.84 | 141.39 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=link_exchange
- > Notice in wp-content/plugins/link-exchange-lite/link-exchange-post-type.php+136
Undefined index: post_type
- > GET request to /wp-admin/post-new.php?post_type=link_exchange
- > Notice in wp-content/plugins/link-exchange-lite/link-exchange-post-type.php+98
Undefined variable: width
- > GET request to /wp-admin/post-new.php?post_type=link_exchange
- > Notice in wp-content/plugins/link-exchange-lite/link-exchange-post-type.php+98
Undefined variable: height
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
Please fix the following
- 7× 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/link-exchange-lite/link-exchange-help.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/link-exchange-lite/link-exchange-post-type.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/link-exchange-lite/link-exchange-settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/link-exchange-lite/link-exchange-shortcode-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/link-exchange-lite/link-exchange.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/link-exchange-lite/link-exchange-publish.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/link-exchange-lite/link-exchange-shortcode-form.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=link_exchange
- > Network (severe)
wp-content/plugins/link-exchange/link-exchange.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Requires at least: Invalid plugin version format
link-exchange-lite/link-exchange.php 85% from 13 tests
The main file in "Link Exchange Lite" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("link-exchange-lite.php" instead of "link-exchange.php")
- Description: Keep the plugin description shorter than 140 characters (currently 260 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin916 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 181 | 196 | 667 |
PO File | 1 | 88 | 216 | 195 |
CSS | 2 | 18 | 18 | 50 |
JavaScript | 2 | 2 | 16 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.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 | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.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 | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
link-exchange-32.png | 1.36KB | 1.32KB | ▼ 3.44% |
link-exchange.png | 0.79KB | 0.72KB | ▼ 8.97% |