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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.31ms] Passed 4 tests
Server-side resources used by LC Widget Modules
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.20 ▼1.14 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.10 ▼0.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 53.36 ▲1.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.22 ▼12.32 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.25 ▲1.07 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for LC Widget Modules
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.53 ▼1.11 | 1.79 ▼0.35 | 43.44 ▼5.17 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▼0.02 | 101.80 ▼0.91 | 37.27 ▼5.61 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.98 ▼0.08 | 42.20 ▼0.05 | 34.44 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,514 ▼29 | 17.48 ▼0.74 | 684.85 ▲15.65 | 54.41 ▲4.84 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.31 ▲0.11 | 96.85 ▼11.04 | 44.85 ▼3.45 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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 | 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
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lc-widget-modules/lc-widget-modules-plugin.php:18
- > PHP Fatal error
Uncaught Error: Class 'DSLC_Posts' not found in wp-content/plugins/lc-widget-modules/lc-widget-modules-mods.php:2
- > PHP Fatal error
Uncaught Error: Class 'DSLC_Module' not found in wp-content/plugins/lc-widget-modules/lc-widget-modules.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: modules, widgets, live, visual, composer
lc-widget-modules/lc-widget-modules-plugin.php 92% from 13 tests
The entry point to "LC Widget Modules" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lc-widget-modules.php" instead of "lc-widget-modules-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected130 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 7 | 14 | 130 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 8 | 47.06% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin