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.22MB] [CPU: ▲2.69ms] Passed 4 tests
Server-side resources used by Xo for Angular
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 39.14 ▼3.21 |
Dashboard /wp-admin | 3.54 ▲0.23 | 47.78 ▲0.05 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 55.26 ▲10.75 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 113.04 ▲22.67 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.18 ▲3.16 |
General Options /wp-admin/admin.php?page=angular-xo | 3.36 | 35.81 |
Tools /wp-admin/admin.php?page=angular-xo-tools | 3.36 | 34.41 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, 22 new options
New WordPress options |
---|
theysaidso_admin_options |
xo_index_src |
xo_index_live_footer |
xo_templates_cache_enabled |
xo_acf_allowed_groups |
xo_access_control_allowed_hosts |
xo_templates_cache |
xo_index_redirect_mode |
xo_templates_reader_enabled |
xo_index_live_config |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Xo for Angular
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲141 | 13.29 ▼1.11 | 4.68 ▲2.92 | 41.23 ▼3.17 |
Dashboard /wp-admin | 2,266 ▲78 | 5.91 ▲0.01 | 111.84 ▲6.23 | 42.38 ▼2.76 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.02 ▼0.01 | 41.63 ▲6.21 | 36.87 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 18.43 ▼4.83 | 612.21 ▼73.66 | 59.86 ▼9.01 |
Media Library /wp-admin/upload.php | 1,451 ▲63 | 4.28 ▲0.09 | 99.76 ▼8.38 | 42.92 ▼2.57 |
General Options /wp-admin/admin.php?page=angular-xo | 981 | 2.19 | 23.96 | 31.31 |
Tools /wp-admin/admin.php?page=angular-xo-tools | 853 | 2.19 | 29.17 | 31.48 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 22 options
- widget_recent-comments
- db_upgraded
- xo_routing_previews_enabled
- xo_api_endpoint
- xo_api_access_control_mode
- theysaidso_admin_options
- xo_acf_allowed_groups
- xo_api_enabled
- widget_theysaidso_widget
- xo_templates_reader_enabled
- ...
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 40× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'XoApiAbstractIndexController' not found in wp-content/plugins/xo-for-angular/Includes/Api/Controllers/OptionsController.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'XoOptionsAbstractSettingsTab' not found in wp-content/plugins/xo-for-angular/Includes/Options/Tabs/General/IndexTab.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'XoApiAbstractResponse' not found in wp-content/plugins/xo-for-angular/Includes/Api/Abstract/Responses/RoutesBreadcrumbsResponse.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'XoApiAbstractResponse' not found in wp-content/plugins/xo-for-angular/Includes/Api/Abstract/Responses/PostsGetResponse.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'XoApiAbstractResponse' not found in wp-content/plugins/xo-for-angular/Includes/Api/Abstract/Responses/TermsGetResponse.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'XoOptionsAbstractSettingsTab' not found in wp-content/plugins/xo-for-angular/Includes/Options/Tabs/General/AcfTab.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'XoApiAbstractResponse' not found in wp-content/plugins/xo-for-angular/Includes/Api/Abstract/Responses/PostsConfigResponse.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'XoOptionsAbstractFieldsTab' not found in wp-content/plugins/xo-for-angular/Includes/Options/Tabs/Tools/ExportTab.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'XoApiAbstractResponse' not found in wp-content/plugins/xo-for-angular/Includes/Api/Abstract/Responses/RoutesSitemapResponse.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'XoApiAbstractIndexController' not found in wp-content/plugins/xo-for-angular/Includes/Api/Controllers/TermsController.class.php:8
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: routes, angular cms, dynamic routing, controllers, annotations...
xo-for-angular/xo-angular.php 77% from 13 tests
The primary PHP file in "Xo for Angular" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("xo-for-angular.php" instead of "xo-angular.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/Languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,258 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 66 | 923 | 2,429 | 3,127 |
CSS | 1 | 17 | 0 | 70 |
SVG | 2 | 0 | 2 | 37 |
Markdown | 1 | 10 | 0 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 7.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 65 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 245 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 175 | 71.43% |
▷ Protected methods | 37 | 15.10% |
▷ Private methods | 33 | 13.47% |
Functions | 45 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 45 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected