Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.85ms] Passed 4 tests
A check of server-side resources used by Recent Posts Widget Advanced
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.71 ▼4.24 |
Dashboard /wp-admin | 3.34 ▲0.00 | 47.28 ▼8.53 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 46.33 ▲3.67 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.13 ▼13.52 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.68 ▼1.12 |
Recent Post Widget /wp-admin/tools.php?page=kgmarp | 3.25 | 30.36 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_widget-recent-posts-in-category |
Browser metrics Passed 4 tests
Checking browser requirements for Recent Posts Widget Advanced
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.29 ▼0.08 | 1.98 ▼0.07 | 37.88 ▼7.56 |
Dashboard /wp-admin | 2,199 ▲25 | 5.61 ▼0.11 | 83.26 ▼1.65 | 38.71 ▲2.07 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.03 | 33.78 ▼5.43 | 35.40 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.02 ▲0.01 | 675.30 ▲75.01 | 52.79 ▼0.24 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.00 | 97.29 ▲4.49 | 40.10 ▼2.08 |
Recent Post Widget /wp-admin/tools.php?page=kgmarp | 789 | 2.03 | 23.84 | 27.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/widget-recent-posts-with-category-choice/templates/frontend-1.php
- > /wp-content/plugins/widget-recent-posts-with-category-choice/includes/frontend.php
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: args in wp-content/plugins/widget-recent-posts-with-category-choice/templates/frontend-1.php on line 12
- > PHP Notice
Undefined variable: query in wp-content/plugins/widget-recent-posts-with-category-choice/templates/frontend-1.php on line 19
- > PHP Notice
Undefined variable: args in wp-content/plugins/widget-recent-posts-with-category-choice/templates/frontend-1.php on line 43
- > PHP Notice
Trying to get property 'posts' of non-object in wp-content/plugins/widget-recent-posts-with-category-choice/includes/frontend.php on line 18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/widget-recent-posts-with-category-choice/templates/frontend-1.php on line 43
- > PHP Notice
Trying to get property 'posts' of non-object in wp-content/plugins/widget-recent-posts-with-category-choice/templates/frontend-1.php on line 19
- > PHP Notice
Undefined variable: title in wp-content/plugins/widget-recent-posts-with-category-choice/includes/frontend.php on line 13
- > PHP Notice
Undefined variable: title in wp-content/plugins/widget-recent-posts-with-category-choice/templates/frontend-1.php on line 14
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/widget-recent-posts-with-category-choice/includes/frontend.php on line 18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/widget-recent-posts-with-category-choice/includes/frontend.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
1 plugin tags: widget
widget-recent-posts-with-category-choice/recent-post-category.php 92% from 13 tests
This is the main PHP file of "Recent Posts Widget Advanced" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("widget-recent-posts-with-category-choice.php" instead of "recent-post-category.php")
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
No dangerous file extensions were detected411 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 78 | 108 | 411 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin