Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/advanced-most-recent-posts-mod/adv-most-recent.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; yg_recent_posts has a deprecated constructor
Server metrics [RAM: ▼2.33MB] [CPU: ▼360.45ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Most Recent Posts Mod
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.47 | 4.69 ▼55.03 |
Dashboard /wp-admin | 2.06 ▼1.35 | 4.50 ▼29.56 |
Posts /wp-admin/edit.php | 2.06 ▼1.58 | 4.31 ▼33.49 |
Add New Post /wp-admin/post-new.php | 2.06 ▼4.91 | 4.64 ▼1,323.73 |
Media Library /wp-admin/upload.php | 2.06 ▼1.24 | 4.99 ▼24.24 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_advancedrecentposts |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Most Recent Posts Mod
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.86 ▼0.16 | 6.08 ▼0.58 | 2.39 ▼0.19 |
Dashboard /wp-admin | 2,895 ▲41 | 6.09 ▼0.15 | 120.47 ▼15.59 | 161.72 ▼50.46 |
Posts /wp-admin/edit.php | 2,670 ▼24 | 3.24 ▼0.00 | 67.65 ▲3.36 | 191.29 ▲52.09 |
Add New Post /wp-admin/post-new.php | 1,690 ▲4 | 21.91 ▲2.17 | 446.11 ▼59.46 | 166.38 ▲5.98 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.48 ▲0.08 | 149.30 ▲9.08 | 197.73 ▲3.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/advanced-most-recent-posts-mod/adv-most-recent.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; yg_recent_posts has a deprecated constructor
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_advancedrecentposts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-most-recent-posts-mod/adv-most-recent.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: thumbnail, recent, advanced, most recent, category posts...
advanced-most-recent-posts-mod/adv-most-recent.php 92% from 13 tests
The main PHP file in "Advanced Most Recent Posts Mod" ver. 1.6.5.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-most-recent-posts-mod.php" instead of "adv-most-recent.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin485 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 40 | 27 | 404 |
PO File | 1 | 34 | 34 | 81 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin