Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.33MB] [CPU: ▼8.91ms] Passed 4 tests
A check of server-side resources used by Display Category Posts Via Shortcode Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.74 ▼35.00 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.99 ▼6.88 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.86 ▲4.72 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.73 ▲8.46 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.52 ▲1.51 |
DCP Lite /wp-admin/options-general.php?page=dcp-lite | 3.21 | 28.83 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Display Category Posts Via Shortcode Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲181 | 13.95 ▼0.44 | 8.19 ▲6.38 | 37.70 ▼12.55 |
Dashboard /wp-admin | 2,207 ▲19 | 4.87 ▼1.03 | 106.96 ▼14.11 | 42.37 ▼4.70 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.04 | 39.98 ▲3.18 | 35.16 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,517 ▼5 | 17.49 ▼5.63 | 671.18 ▲6.31 | 59.19 ▲7.20 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.19 ▼0.07 | 98.64 ▲0.79 | 45.63 ▼0.65 |
DCP Lite /wp-admin/options-general.php?page=dcp-lite | 1,034 | 2.05 | 24.89 | 39.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-category-posts-via-shortcode-lite/ospl.php:3
- > PHP Warning
require(WP_CONTENT_DIR/plugins/display-category-posts-via-shortcode-lite/ospl.php): failed to open stream: No such file or directory in wp-content/plugins/display-category-posts-via-shortcode-lite/dcplite.php on line 13
- > PHP Fatal error
require(): Failed opening required 'WP_CONTENT_DIR/plugins/display-category-posts-via-shortcode-lite/ospl.php' (include_path='.:/usr/share/php') in wp-content/plugins/display-category-posts-via-shortcode-lite/dcplite.php on line 13
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/display-category-posts-via-shortcode-lite/dcplite.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Contributors: Plugin contributors field is missing
display-category-posts-via-shortcode-lite/dcplite.php 92% from 13 tests
The principal PHP file in "Display Category Posts Via Shortcode Lite" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("display-category-posts-via-shortcode-lite.php" instead of "dcplite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin6,497 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 6 | 13 | 6,313 |
PHP | 2 | 58 | 9 | 184 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin