Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.75ms] Passed 4 tests
Analyzing server-side resources used by Compute Links
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.64 ▼1.50 |
Dashboard /wp-admin | 3.35 ▲0.04 | 53.99 ▲0.30 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.15 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 97.98 ▼4.82 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 39.37 ▲1.76 |
Compute Links /wp-admin/options-general.php?page=compute_links | 3.25 | 35.72 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_clp_compute_links |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
my_db_version |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Compute Links
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.34 ▲0.05 | 1.81 ▼0.09 | 44.70 ▲3.51 |
Dashboard /wp-admin | 2,202 ▲28 | 5.63 ▲0.03 | 95.47 ▼9.17 | 40.23 ▼5.67 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▼0.00 | 39.68 ▼0.02 | 34.98 ▼4.10 |
Add New Post /wp-admin/post-new.php | 1,529 ▲121 | 23.08 ▲5.02 | 703.14 ▲70.31 | 52.54 ▲1.07 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.24 ▲0.01 | 101.35 ▲1.12 | 46.35 ▲1.91 |
Compute Links /wp-admin/options-general.php?page=compute_links | 880 | 2.00 | 32.87 | 38.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_clp_compute_links
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- my_db_version
- 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Clp_Link' not found in wp-content/plugins/compute-links/admin/view/links.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/compute-links/admin/view/index.php:1
- > PHP Fatal error
Uncaught Error: Class 'Clp_Link' not found in wp-content/plugins/compute-links/installer.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/compute-links/admin/view/settings.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% 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
3 plugin tags: compute links, display link size, total size links
compute-links/compute_links.php 92% from 13 tests
The entry point to "Compute Links" version 1.2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("compute-links.php" instead of "compute_links.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin498 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 79 | 8 | 421 |
CSS | 2 | 16 | 0 | 77 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 134.06KB | 53.72KB | ▼ 59.93% |
assets/screenshot-3.png | 50.08KB | 17.93KB | ▼ 64.19% |
assets/screenshot-2.png | 106.15KB | 44.31KB | ▼ 58.26% |