Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/oh-authors-recent-posts-widget/plugin.php+247
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼183.25ms] Passed 4 tests
Server-side resources used by SOGO Author's Recent Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 5.35 ▼15.65 |
Dashboard /wp-admin | 1.76 ▼1.29 | 9.96 ▼29.81 |
Posts /wp-admin/edit.php | 1.76 ▼1.34 | 5.25 ▼36.42 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 5.34 ▼639.94 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 4.83 ▼26.81 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_oh_author_recent_post |
Browser metrics Passed 4 tests
Checking browser requirements for SOGO Author's Recent Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲85 | 15.84 ▲0.33 | 8.79 ▲0.97 | 45.79 ▼5.47 |
Dashboard /wp-admin | 2,975 ▲44 | 5.88 ▼0.05 | 138.33 ▼5.70 | 105.31 ▲0.08 |
Posts /wp-admin/edit.php | 2,738 ▼1 | 2.68 ▼0.01 | 64.24 ▼0.27 | 92.65 ▲2.98 |
Add New Post /wp-admin/post-new.php | 1,674 ▲176 | 18.89 ▲0.06 | 377.46 ▲18.05 | 106.60 ▲5.73 |
Media Library /wp-admin/upload.php | 1,824 ▲17 | 5.01 ▼0.00 | 160.37 ▼0.62 | 114.15 ▲2.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/oh-authors-recent-posts-widget/plugin.php+247
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 1 option
- widget_oh_author_recent_post
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
Good news, no errors were detected
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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/oh-authors-recent-posts-widget/plugin.php:29
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/oh-authors-recent-posts-widget/views/widget.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/oh-authors-recent-posts-widget/views/admin.php:3
- > PHP Notice
Undefined variable: r in wp-content/plugins/oh-authors-recent-posts-widget/views/widget.php on line 1
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: recent post, hebrew, author, widget, rtl
oh-authors-recent-posts-widget/plugin.php 92% from 13 tests
The primary PHP file in "SOGO Author's Recent Posts" version 1.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("oh-authors-recent-posts-widget.php" instead of "plugin.php")
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 plugin266 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 66 | 70 | 215 |
PO File | 1 | 36 | 61 | 49 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 50.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected