Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.83ms] Passed 4 tests
Analyzing server-side resources used by Mentionable
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.30 ▲1.96 |
Dashboard /wp-admin | 3.33 ▼0.01 | 48.93 ▼13.05 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.46 ▼1.67 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 98.34 ▼6.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.39 ▲3.12 |
Mentionable /wp-admin/options-general.php?page=mentionable | 3.22 | 31.34 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Mentionable
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.17 | 1.70 ▲0.04 | 40.40 ▼5.67 |
Dashboard /wp-admin | 2,196 ▲16 | 5.61 ▼0.01 | 87.68 ▼1.70 | 41.70 ▼5.79 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.04 ▲0.06 | 33.91 ▼3.64 | 38.43 ▲2.84 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.87 ▼0.31 | 633.11 ▼47.22 | 51.91 ▲0.24 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.26 ▲0.05 | 97.65 ▼7.31 | 44.25 ▼1.49 |
Mentionable /wp-admin/options-general.php?page=mentionable | 939 | 1.99 | 22.39 | 28.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mentionable/templates/mentionable.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to get property 'mentionable_tag_content' of non-object in wp-content/plugins/mentionable/templates/mentionable.php on line 2
- > PHP Notice
Undefined variable: post in wp-content/plugins/mentionable/templates/mentionable.php on line 2
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/mentionable/tests/bootstrap.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/mentionable/tests/test-mentionable-postmetas.php:8
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/mentionable/tests/bootstrap.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/mentionable/tests/test-mentionable.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mentionable/mentionable.php:97
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: mention, admin, tinymce
mentionable/mentionable.php Passed 13 tests
The main PHP script in "Mentionable" version 0.4.3 is automatically included on every request by WordPress
66 characters long description:
Mention WordPress content with inline autocomplete inside tinyMCE.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,334 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 193 | 464 | 640 |
JavaScript | 1 | 40 | 118 | 232 |
Bourne Again Shell | 2 | 41 | 18 | 172 |
Markdown | 3 | 40 | 0 | 87 |
PO File | 1 | 11 | 14 | 48 |
Bourne Shell | 1 | 12 | 6 | 47 |
XML | 3 | 5 | 0 | 44 |
CSS | 2 | 4 | 12 | 36 |
YAML | 1 | 5 | 0 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 95.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.88% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 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
There were not PNG files found in your plugin