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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.39MB] [CPU: ▼5.50ms] Passed 4 tests
A check of server-side resources used by List category posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 40.58 ▲1.09 |
Dashboard /wp-admin | 3.72 ▲0.37 | 47.00 ▼9.81 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 48.17 ▼2.95 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 87.93 ▼8.51 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 35.81 ▼0.72 |
List Category Posts /wp-admin/options-general.php?page=list-category-posts | 3.55 | 34.39 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 8 new options
New WordPress options |
---|
numberposts |
widget_listcategorypostswidget |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
List category posts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲22 | 14.72 ▲0.53 | 1.62 ▼0.04 | 38.69 ▼5.50 |
Dashboard /wp-admin | 2,199 ▲22 | 5.60 ▲0.02 | 91.10 ▼2.47 | 40.95 ▼5.27 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.94 ▼0.01 | 36.87 ▼4.05 | 33.51 ▼7.49 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.17 ▲0.18 | 692.16 ▲19.95 | 50.00 ▼3.94 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.26 ▲0.07 | 95.08 ▼7.50 | 42.81 ▼1.71 |
List Category Posts /wp-admin/options-general.php?page=list-category-posts | 1,004 | 1.96 | 23.06 | 45.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_listcategorypostswidget
- numberposts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'LCP_PATHlcp-utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/list-category-posts/include/lcp-parameters.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/list-category-posts/include/lcp-widget.php:7
- > PHP Warning
Use of undefined constant LCP_PATH - assumed 'LCP_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/list-category-posts/include/lcp-parameters.php on line 2
- > PHP Warning
require_once(LCP_PATHlcp-utils.php): failed to open stream: No such file or directory in wp-content/plugins/list-category-posts/include/lcp-parameters.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/list-category-posts/include/lcp-widget-form.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/list-category-posts/include/lcp-catlist.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/list-category-posts/include/lcp-options.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/list-category-posts/include/lcp-widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/list-category-posts/include/lcp-catlist.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/list-category-posts/templates/default.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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: cms, list, posts, categories
list-category-posts/list-category-posts.php 92% from 13 tests
The entry point to "List category posts" version 0.89.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 379 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,736 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 395 | 850 | 2,388 |
PO File | 12 | 384 | 487 | 1,342 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 26.43 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 14 | 10.22% |
▷ Public methods | 82 | 59.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 55 | 40.15% |
Functions | 13 | |
▷ Named functions | 8 | 61.54% |
▷ Anonymous functions | 5 | 38.46% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG images were found in this plugin