Benchmarks
Plugin footprint 83% 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: ▲1.17MB] [CPU: ▲4.17ms] Passed 4 tests
A check of server-side resources used by Lesser
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 51.21 ▲9.48 |
Dashboard /wp-admin | 4.81 ▲1.46 | 59.64 ▼2.39 |
Posts /wp-admin/edit.php | 4.92 ▲1.57 | 69.32 ▲7.95 |
Add New Post /wp-admin/post-new.php | 7.39 ▲1.50 | 111.47 ▲1.64 |
Media Library /wp-admin/upload.php | 4.71 ▲1.48 | 53.52 ▲16.97 |
Instructions /wp-admin/admin.php?page=lesser_instructions_page | 6.43 | 60.29 |
LESS /wp-admin/admin.php?page=lesser_common_page | 6.68 | 63.53 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 202 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Lesser: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.30 ▼1.08 | 1.79 ▲0.04 | 42.03 ▼0.23 |
Dashboard /wp-admin | 2,235 ▲47 | 5.99 ▲1.12 | 98.93 ▼22.99 | 39.23 ▼5.94 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.02 ▲0.01 | 40.05 ▼1.23 | 34.70 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,552 ▲16 | 23.11 ▲0.18 | 658.71 ▲35.92 | 56.76 ▲3.30 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.30 ▲0.05 | 96.65 ▼5.35 | 42.26 ▼1.41 |
Instructions /wp-admin/admin.php?page=lesser_instructions_page | 954 | 2.05 | 26.76 | 27.87 |
LESS /wp-admin/admin.php?page=lesser_common_page | 937 | 2.02 | 25.78 | 24.75 |
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 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lesser/app/views/instructions.php
- 427× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > admin_url
- > after_setup_theme
- > PHP Fatal error
Uncaught Error: Class 'LesserAdminPageFramework_FormOutput' not found in wp-content/plugins/lesser/app/apf/factory/AdminPageFramework_Factory/view/AdminPageFramework_FormField/AdminPageFramework_FormField_Base.php:8
- > PHP Fatal error
Uncaught Error: Class 'LesserAdminPageFramework_FieldType' not found in wp-content/plugins/lesser/app/apf/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_FieldType_select.php:8
- > PHP Fatal error
Uncaught Error: Class 'LesserAdminPageFramework_Link_Base' not found in wp-content/plugins/lesser/app/apf/factory/AdminPageFramework/controller/AdminPageFramework_Link_Page.php:8
- > nonce_user_logged_out
- > PHP Fatal error
Uncaught Error: Class 'LesserAdminPageFramework_WPUtility' not found in wp-content/plugins/lesser/app/apf/factory/AdminPageFramework_Factory/view/AdminPageFramework_FieldType/AdminPageFramework_FieldType_Base.php:8
- > register_nav_menu_item_post_type_args
- > PHP Fatal error
Uncaught Error: Class 'LesserAdminPageFramework_Factory' not found in wp-content/plugins/lesser/app/apf/factory/AdminPageFramework/AdminPageFramework_Router.php:8
- > post_type_labels_nav_menu_item
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=lesser_common_page
- > Network (severe)
wp-content/plugins/lesser/app/render.php?mode=common&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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Add custom CSS to your site, both admin and public pages), #2 (Lesser outputs styling compatible with popular caching plugins), #3 (Lesser Pro - manage public and admin page styling separately), #4 (Lesser Pro - use Development Mode for unpacked CSS and cache-busting)
lesser/plugin.php 92% from 13 tests
The main PHP script in "Lesser" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("lesser.php" instead of "plugin.php")
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 detected17,129 lines of code in 189 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 186 | 2,932 | 3,359 | 16,864 |
Markdown | 1 | 91 | 0 | 231 |
JSON | 1 | 0 | 0 | 31 |
Bourne Shell | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 16.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 391.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 179 | |
▷ Abstract classes | 48 | 26.82% |
▷ Concrete classes | 131 | 73.18% |
▷ Final classes | 2 | 1.53% |
Methods | 1,408 | |
▷ Static methods | 210 | 14.91% |
▷ Public methods | 859 | 61.01% |
▷ Protected methods | 196 | 13.92% |
▷ Private methods | 353 | 25.07% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 1.28MB with 0.85MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 487.97KB | 141.40KB | ▼ 71.02% |
screenshot-2.png | 457.51KB | 158.92KB | ▼ 65.26% |
screenshot-4.png | 181.65KB | 63.95KB | ▼ 64.79% |
screenshot-3.png | 184.75KB | 65.52KB | ▼ 64.54% |