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
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼5.04ms] Passed 4 tests
Analyzing server-side resources used by WP/LR Theme Assistant
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 52.09 ▲5.96 |
Dashboard /wp-admin | 3.68 ▲0.34 | 55.91 ▼17.57 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 58.40 ▲5.59 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 102.17 ▼14.12 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 46.27 ▲5.93 |
Theme Assistant /wp-admin/admin.php?page=wplr-post_types-menu | 3.54 | 39.27 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for WP/LR Theme Assistant
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.23 ▲0.08 | 2.22 ▲0.27 | 43.66 ▲0.90 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.02 | 85.69 ▼7.72 | 39.54 ▼0.88 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▼0.05 | 40.68 ▲6.05 | 35.58 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 23.09 ▼0.25 | 615.39 ▼73.52 | 52.87 ▼10.08 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.19 ▲0.06 | 95.85 ▼23.11 | 43.55 ▼6.36 |
Theme Assistant /wp-admin/admin.php?page=wplr-post_types-menu | 707 | 2.13 | 23.01 | 20.64 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wplr-post_types-menu
- > Error in wp-content/plugins/wplr-theme-assistant/views/settings.php+2
Uncaught Error: Call to a member function display_title() on null in wp-content/plugins/wplr-theme-assistant/views/settings.php:2
Stack trace:
#0 wp-content/plugins/wplr-theme-assistant/wplr-theme-assistant.php(582): include()
#1 wp-includes/class-wp-hook.php(310): WPLR_Theme_Assistant->admin_settings()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wplr-theme-assistant/wplr-theme-assistant.php:19
- > PHP Fatal error
Uncaught Error: Call to a member function display_title() on null in wp-content/plugins/wplr-theme-assistant/views/settings.php:2
- > PHP Notice
Undefined variable: wplr_admin in wp-content/plugins/wplr-theme-assistant/views/settings.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wplr-post_types-menu
- > Console-api (severe) in wp-content/plugins/wplr-theme-assistant/modules/vue.js?ver=6.3.1+596:14
[Vue warn]: Cannot find element: #mappings
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: lightroom, wplr-extension, wplr-sync, assistant
wplr-theme-assistant/wplr-theme-assistant.php 92% from 13 tests
The main PHP script in "WP/LR Theme Assistant" version 0.5.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected10,839 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,118 | 1,403 | 9,159 |
PHP | 5 | 216 | 297 | 1,473 |
CSS | 2 | 17 | 27 | 207 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 60.25 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 5 | 5.00% |
▷ Public methods | 95 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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