Benchmarks
Plugin footprint 83% 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.13MB] [CPU: ▼1.20ms] Passed 4 tests
This is a short check of server-side resources used by Local Links
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 46.08 ▲5.27 |
Dashboard /wp-admin | 3.43 ▲0.13 | 50.30 ▼5.60 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 50.79 ▲2.71 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 86.87 ▼6.82 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 40.15 ▲4.93 |
Local Links /wp-admin/options-general.php?page=locallinks_config | 3.32 | 33.56 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 44 new options
New WordPress options |
---|
locallinks_googleaff |
db_upgraded |
locallinks_amazon |
locallinks_mx |
locallinks_obsaff |
locallinks_se |
locallinks_bsaff |
can_compress_scripts |
locallinks_aplaff |
locallinks_kobo |
... |
Browser metrics Passed 4 tests
Local Links: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.68 ▼0.60 | 12.68 ▲10.97 | 39.47 ▼5.20 |
Dashboard /wp-admin | 2,199 ▲22 | 5.51 ▼0.08 | 84.18 ▼2.79 | 35.79 ▼7.41 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.00 | 34.37 ▼7.86 | 30.25 ▼5.96 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.64 ▲0.57 | 698.88 ▲38.24 | 53.73 ▼8.14 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.04 | 94.79 ▼2.32 | 40.54 ▼4.79 |
Local Links /wp-admin/options-general.php?page=locallinks_config | 1,239 | 2.12 | 26.01 | 25.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- locallinks_plugin_version
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/local-links/local-links.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/local-links/public/replacelinks.php:274
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
local-links/local-links.php 92% from 13 tests
"Local Links" version 4.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 204 characters long)
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
Everything looks great! No dangerous files found in this plugin1,118 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 105 | 135 | 852 |
JavaScript | 2 | 52 | 112 | 266 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin