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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼144.22ms] Passed 4 tests
Analyzing server-side resources used by Super Recent Posts Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 36.74 ▲15.04 |
Dashboard /wp-admin | 3.12 ▲0.06 | 43.49 ▼0.83 |
Posts /wp-admin/edit.php | 3.17 ▲0.05 | 46.79 ▼8.46 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 89.60 ▼563.88 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 29.93 ▼3.69 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_super_recent_posts_widget |
Browser metrics Passed 4 tests
Super Recent Posts Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲42 | 16.14 ▲0.44 | 11.18 ▲0.85 | 49.26 ▼1.69 |
Dashboard /wp-admin | 2,973 ▲39 | 6.08 ▲0.12 | 141.91 ▼10.42 | 109.18 ▲4.06 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 70.53 ▲5.11 | 95.26 ▲6.14 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.98 ▲3.20 | 398.94 ▲11.67 | 101.90 ▼5.47 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.02 ▼0.00 | 152.95 ▼41.21 | 112.95 ▼0.02 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- widget_super_recent_posts_widget
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
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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/super-recent-posts-widget/lib/class-super-recent-posts-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-recent-posts-widget/lib/class-srpw-ajax.php:6
- > PHP Notice
Undefined variable: title in wp-content/plugins/super-recent-posts-widget/views/widget.php on line 2
- > PHP Notice
Undefined variable: posts in wp-content/plugins/super-recent-posts-widget/views/widget.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/super-recent-posts-widget/lib/class-super-recent-posts-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/super-recent-posts-widget/views/widget.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Screenshot of widget) image required
super-recent-posts-widget/super-recent-posts-widget.php Passed 13 tests
The main PHP file in "Super Recent Posts Widget" ver. 0.3.0 adds more information about the plugin and also serves as the entry point for this plugin
129 characters long description:
A prettier, filterable and more functional recent posts widget that allows you to choose a custom post type or specific taxonomy.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin571 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 51 | 54 | 305 |
JavaScript | 3 | 8 | 6 | 142 |
Markdown | 1 | 38 | 0 | 73 |
JSON | 1 | 1 | 0 | 24 |
Sass | 1 | 1 | 0 | 15 |
CSS | 2 | 1 | 1 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 9 | 64.29% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin