Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.61ms] Passed 4 tests
An overview of server-side resources used by WPCT Drag & Drop Recent Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 45.13 ▲5.18 |
Dashboard /wp-admin | 3.46 ▲0.15 | 47.72 ▼3.99 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.00 ▼10.92 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 93.30 ▼2.10 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.99 ▼1.41 |
Server storage [IO: ▲2.92MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_wpctrecentposts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WPCT Drag & Drop Recent Posts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲146 | 13.57 ▼0.71 | 12.94 ▲11.29 | 42.17 ▼2.70 |
Dashboard /wp-admin | 2,199 ▲19 | 5.56 ▼0.12 | 82.78 ▼14.88 | 39.57 ▼4.10 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.19 ▲0.22 | 37.08 ▲1.74 | 31.69 ▼4.77 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 25.02 ▲6.80 | 622.05 ▼22.76 | 51.70 ▼30.34 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.01 | 95.32 ▼1.54 | 40.47 ▼2.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_wpctrecentposts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpct-drag-drop-recent-posts/wpct-drag-drop-recent-posts.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: posts widget, latest posts, latest posts widget, category posts, posts slider
wpct-drag-drop-recent-posts/wpct-drag-drop-recent-posts.php Passed 13 tests
The main file in "WPCT Drag & Drop Recent Posts" v. 1.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Very customizable slider for posts
Code Analysis 97% from 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 detected16,903 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 8,889 |
CSS | 5 | 2,538 | 19 | 7,199 |
PHP | 1 | 24 | 24 | 787 |
JavaScript | 2 | 11 | 6 | 28 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 108)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 120.00 |
▷ Minimum class complexity | 120.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 30.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 108.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected