Benchmarks
Plugin footprint 48% 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.58MB] [CPU: ▼6.44ms] Passed 4 tests
A check of server-side resources used by Text Truncator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 41.05 ▼4.39 |
Dashboard /wp-admin | 3.99 ▲0.65 | 52.20 ▼10.87 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 51.71 ▲1.19 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 89.72 ▼11.68 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 40.44 ▲1.59 |
Trucator /wp-admin/themes.php?page=ttc_settings | 5.20 | 66.00 |
Server storage [IO: ▲0.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 211 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Text Truncator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲159 | 14.08 ▼0.31 | 7.81 ▲6.09 | 38.09 ▼5.62 |
Dashboard /wp-admin | 2,228 ▲31 | 4.88 ▼1.00 | 113.16 ▲7.80 | 40.35 ▲4.47 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.02 | 39.86 ▼0.46 | 36.84 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.02 ▲5.57 | 657.16 ▼18.21 | 52.39 ▼8.07 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.25 ▲0.04 | 100.18 ▼13.73 | 45.67 ▼5.48 |
Trucator /wp-admin/themes.php?page=ttc_settings | 1,216 | 2.40 | 41.43 | 30.12 |
Uninstaller [IO: ▲0.85MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attentionThis plugin did not uninstall successfully, leaving 7 options in the database
- Uninstall procedure validation failed for this plugin
- > Error in wp-content/plugins/text-truncator/text-truncator.php+16
Cannot declare class TextTruncator_Registry_Base, because the name is already in use
- Uninstaller has failed for this plugin, leaving 211 files (0.85MB) in the plugin directory
- (new file) include/class/admin/_abstract/TextTruncator_AdminPage_RootBase.php
- (new file) asset/css/admin.css
- (new file) asset/js/trunk8-enabler.js
- (new file) asset/js/trunk8.js
- (new file) include/class/admin/_abstract/TextTruncator_AdminPage_Page_Base.php
- (new file) asset/js/LICENSE
- (new file) include/class/admin/TextTruncator_AdminPage.php
- (new file) include/class-list.php
- (new file) include/class/admin/_abstract/TextTruncator_AdminPage_Tab_Base.php
- (new file) include/class/admin/_abstract/TextTruncator_AdminPage_Section_Base.php
- ...
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 181× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TextTruncator_AdminPageFramework_FormElement' not found in wp-content/plugins/text-truncator/include/library/admin-page-framework/factory/AdminPageFramework_Factory/model/AdminPageFramework_FormElement/AdminPageFramework_FormElement_Meta.php:8
- > PHP Fatal error
Uncaught Error: Class 'TextTruncator_AdminPageFramework_Form_Model' not found in wp-content/plugins/text-truncator/include/library/admin-page-framework/factory/AdminPageFramework/AdminPageFramework_Form_View.php:8
- > PHP Fatal error
Uncaught Error: Class 'TextTruncator_AdminPageFramework_Resource_Base' not found in wp-content/plugins/text-truncator/include/library/admin-page-framework/factory/AdminPageFramework_Widget/controller/AdminPageFramework_Resource_Widget.php:8
- > PHP Fatal error
Uncaught Error: Class 'TextTruncator_AdminPageFramework_PostType_View' not found in wp-content/plugins/text-truncator/include/library/admin-page-framework/factory/AdminPageFramework_PostType/AdminPageFramework_PostType_Controller.php:8
- > PHP Fatal error
Uncaught Error: Class 'TextTruncator_AdminPageFramework_FieldType' not found in wp-content/plugins/text-truncator/include/library/admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_FieldType_textarea.php:8
- > PHP Fatal error
Uncaught Error: Class 'TextTruncator_AdminPageFramework_Page_Model' not found in wp-content/plugins/text-truncator/include/library/admin-page-framework/factory/AdminPageFramework/AdminPageFramework_Page_View_MetaBox.php:8
- > PHP Fatal error
Uncaught Error: Class 'TextTruncator_AdminPageFramework' not found in wp-content/plugins/text-truncator/include/class/admin/TextTruncator_AdminPage.php:16
- > PHP Fatal error
Uncaught Error: Class 'TextTruncator_AdminPageFramework_Router' not found in wp-content/plugins/text-truncator/include/library/admin-page-framework/factory/AdminPageFramework/AdminPageFramework_Form_Model_Imort.php:8
- > PHP Fatal error
Uncaught Error: Class 'TextTruncator_AdminPage_RootBase' not found in wp-content/plugins/text-truncator/include/class/admin/_abstract/TextTruncator_AdminPage_Page_Base.php:14
- > PHP Fatal error
Uncaught Error: Class 'TextTruncator_AdminPageFramework_FormField_Base' not found in wp-content/plugins/text-truncator/include/library/admin-page-framework/factory/AdminPageFramework_Factory/view/AdminPageFramework_FormField/AdminPageFramework_FormField_FieldDefinition.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/themes.php?page=ttc_settings
- > Network (severe)
wp-content/plugins/text-truncator/asset/css/ttc_settings.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not 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:
- Screenshots: These screenshots do not have images: #1 (**Front-end**), #2 (**Setting Page**)
text-truncator/text-truncator.php 92% from 13 tests
The principal PHP file in "Text Truncator" v. 1... is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1...")
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
Good job! No executable or dangerous file extensions detected13,544 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 202 | 865 | 2,382 | 13,185 |
JavaScript | 2 | 71 | 64 | 316 |
Markdown | 1 | 23 | 0 | 43 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 202 | |
▷ Abstract classes | 86 | 42.57% |
▷ Concrete classes | 116 | 57.43% |
▷ Final classes | 4 | 3.45% |
Methods | 1,198 | |
▷ Static methods | 172 | 14.36% |
▷ Public methods | 637 | 53.17% |
▷ Protected methods | 253 | 21.12% |
▷ Private methods | 308 | 25.71% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 1 | 3.85% |
▷ Class constants | 25 | 96.15% |
▷ Public constants | 25 | 100.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
No PNG files were detected