Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.93ms] Passed 4 tests
This is a short check of server-side resources used by Mention Links
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.05 ▼9.24 |
Dashboard /wp-admin | 3.40 ▲0.05 | 49.71 ▼14.63 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.80 ▼3.56 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.39 ▼4.28 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.58 ▼1.18 |
Mention Links /wp-admin/options-general.php?page=wp-mention-links | 3.34 | 32.09 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Mention Links: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.37 ▲0.09 | 1.65 ▼0.39 | 35.84 ▼7.72 |
Dashboard /wp-admin | 2,199 ▲19 | 5.60 ▼0.05 | 89.64 ▼9.12 | 39.62 ▼5.96 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.08 ▲0.10 | 39.33 ▲0.85 | 35.91 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.25 ▼0.07 | 626.30 ▼50.65 | 56.12 ▲5.16 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.15 ▼0.15 | 95.97 ▼4.66 | 40.45 ▼0.38 |
Mention Links /wp-admin/options-general.php?page=wp-mention-links | 850 | 2.00 | 26.04 | 27.93 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Trait 'Mention_Links\\Inc\\Traits\\Singleton' not found in wp-content/plugins/mention-links/inc/classes/class-plugin-configs.php on line 16
- > PHP Fatal error
Trait 'Mention_Links\\Inc\\Traits\\Singleton' not found in wp-content/plugins/mention-links/inc/classes/class-assets.php on line 15
- > PHP Fatal error
Trait 'Mention_Links\\Inc\\Traits\\Singleton' not found in wp-content/plugins/mention-links/inc/classes/plugin-configs/class-plugin-settings.php on line 16
- > PHP Fatal error
Trait 'Mention_Links\\Inc\\Traits\\Singleton' not found in wp-content/plugins/mention-links/inc/classes/class-plugin.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/mention-links/mention-links.php:16
- > 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 96% from 29 tests
readme.txt Passed 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
5 plugin tags: custom post types mentions, mentions, user mentions, cpt mentions, post mentions
mention-links/mention-links.php 92% from 13 tests
The main PHP script in "Mention Links" version 1.0.4 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 148 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 plugin6,247 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 5,859 |
PHP | 7 | 99 | 218 | 280 |
JavaScript | 3 | 16 | 23 | 67 |
PO File | 1 | 14 | 16 | 41 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 5.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 9 | 56.25% |
▷ Protected methods | 7 | 43.75% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
PNG images were not found in this plugin