Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.74MB] [CPU: ▼5.20ms] Passed 4 tests
Analyzing server-side resources used by Custom Translation Files
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 38.86 ▲1.07 |
Dashboard /wp-admin | 4.18 ▲0.88 | 47.10 ▼3.54 |
Posts /wp-admin/edit.php | 4.23 ▲0.87 | 44.84 ▼0.35 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.87 | 81.10 ▼17.97 |
Media Library /wp-admin/upload.php | 4.10 ▲0.87 | 37.14 ▲3.81 |
Custom Translation Files /wp-admin/options-general.php?page=ctf_settings | 6.78 | 85.06 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 253 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Translation Files
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.71 ▲0.16 | 1.97 ▲0.45 | 45.35 ▲5.24 |
Dashboard /wp-admin | 2,202 ▲21 | 5.62 ▼0.20 | 83.43 ▼13.71 | 38.01 ▼6.07 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.03 | 34.65 ▼2.92 | 34.46 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.14 ▲0.01 | 674.32 ▼21.61 | 52.04 ▼21.14 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.19 ▲0.01 | 95.22 ▼7.07 | 41.42 ▼4.28 |
Custom Translation Files /wp-admin/options-general.php?page=ctf_settings | 1,353 | 3.87 | 64.65 | 72.73 |
Uninstaller [IO: ▲1.11MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the followingZombie WordPress options were found after uninstall: 7 options
- Uninstall procedure validation failed for this plugin
- > Error in wp-content/plugins/custom-translation-files/custom-translation-files.php+16
Cannot declare class CustomTranslationFiles_Registry_Base, because the name is already in use
- Incomplete uninstall procedure, leaving 253 files (1.11MB) in the plugin directory
- (new file) include/library/apf/factory/_common/_abstract/_controller/AdminPageFramework_Resource_Base.php
- (new file) include/library/apf/factory/_common/_abstract/_controller/AdminPageFramework_Link_Base.php
- (new file) custom-translation-files.php
- (new file) include/library/apf/factory/_common/_abstract/_controller/AdminPageFramework_HelpPane_Base.php
- (new file) include/library/apf/admin-page-framework-include-class-list.php
- (new file) include/library/apf/factory/_common/_abstract/AdminPageFramework_Factory.php
- (new file) include/library/apf/LICENSE.txt
- (new file) include/library/apf/admin-page-framework.php
- (new file) include/CustomTranslationFiles_Bootstrap.php
- (new file) include/class-list.php
- ...
- widget_recent-comments
- recovery_mode_email_last_sent
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 228× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CustomTranslationFiles_AdminPageFramework_Form_View___Script_Base' not found in wp-content/plugins/custom-translation-files/include/library/apf/factory/_common/form/_view/script/AdminPageFramework_Form_View___Script_RegisterCallback.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomTranslationFiles_PluginUtility' not found in wp-content/plugins/custom-translation-files/include/main/option/CustomTranslationFiles_Option_Base.php:15
- > PHP Fatal error
Uncaught Error: Class 'CustomTranslationFiles_AdminPageFramework_Form_View___Attribute_FieldContainer_Base' not found in wp-content/plugins/custom-translation-files/include/library/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fieldset.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomTranslationFiles_AdminPageFramework_Property_Base' not found in wp-content/plugins/custom-translation-files/include/library/apf/factory/meta_box/_model/AdminPageFramework_Property_post_meta_box.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomTranslationFiles_AdminPageFramework_Form' not found in wp-content/plugins/custom-translation-files/include/library/apf/factory/admin_page/form/AdminPageFramework_Form_admin_page.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomTranslationFiles_AdminPageFramework_Form_View___CSS_Base' not found in wp-content/plugins/custom-translation-files/include/library/apf/factory/term_meta/form/_view/AdminPageFramework_Form_View___CSS_term_meta.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomTranslationFiles_AdminPageFramework_FieldType' not found in wp-content/plugins/custom-translation-files/include/library/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_export.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomTranslationFiles_AdminPageFramework_Format_Base' not found in wp-content/plugins/custom-translation-files/include/library/apf/factory/_common/form/_view/sectionset/format/AdminPageFramework_Format_PageResource_Style.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomTranslationFiles_AdminPageFramework_HelpPane_Base' not found in wp-content/plugins/custom-translation-files/include/library/apf/factory/taxonomy_field/_controller/AdminPageFramework_HelpPane_taxonomy_field.php:7
- > PHP Fatal error
Uncaught Error: Class 'CustomTranslationFiles_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/custom-translation-files/include/library/apf/factory/_common/form/_model/modifier/AdminPageFramework_Form_Model___Modifier_FilterRepeatableElements.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: text domain, localization, mo, translation, translate
custom-translation-files/custom-translation-files.php Passed 13 tests
"Custom Translation Files" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Allows you to set custom translation files for a particular text domain.
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
There were no executable files found in this plugin16,364 lines of code in 243 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 240 | 841 | 2,389 | 16,309 |
Markdown | 1 | 23 | 0 | 51 |
CSS | 2 | 0 | 5 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 356 | |
▷ Abstract classes | 97 | 27.25% |
▷ Concrete classes | 259 | 72.75% |
▷ Final classes | 4 | 1.54% |
Methods | 1,741 | |
▷ Static methods | 244 | 14.01% |
▷ Public methods | 974 | 55.94% |
▷ Protected methods | 294 | 16.89% |
▷ Private methods | 473 | 27.17% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 1 | 3.70% |
▷ Class constants | 26 | 96.30% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin