Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.89ms] Passed 4 tests
Analyzing server-side resources used by Code Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.93 ▲2.88 |
Dashboard /wp-admin | 3.39 ▲0.08 | 43.22 ▼3.43 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.91 ▲3.42 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 80.51 ▼11.81 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.34 ▲0.80 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
cw_activation_time |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
widget_codewidget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Code Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.08 | 1.83 ▲0.18 | 44.03 ▲3.64 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.05 | 91.46 ▲4.55 | 40.43 ▲1.51 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.02 | 38.96 ▲3.22 | 37.00 ▲0.89 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.54 ▲0.38 | 666.24 ▲10.40 | 57.35 ▼1.34 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.01 | 92.99 ▼5.17 | 38.96 ▼4.85 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- cw_activation_time
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_codewidget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function solbox_plugin_feedback\\is_admin() in wp-content/plugins/code-widget/lib/solbox-plugin-deactivation-survey/deactivate-feedback-form.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please describe screenshot #5 in code-widget/assets to your readme.txt
code-widget/class-code-widget.php 77% from 13 tests
The primary PHP file in "Code Widget" version 1.0.15 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("code-widget.php" instead of "class-code-widget.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 209 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected790 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 69 | 144 | 336 |
CSS | 3 | 101 | 43 | 330 |
JavaScript | 2 | 30 | 13 | 108 |
Markdown | 1 | 10 | 0 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin