Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > 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: ▼1.76MB] [CPU: ▼50.89ms] Passed 4 tests
A check of server-side resources used by Advanced Most Recent Posts Mod
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 4.90 ▼35.95 |
Dashboard /wp-admin | 2.24 ▼1.06 | 7.20 ▼46.45 |
Posts /wp-admin/edit.php | 2.24 ▼1.11 | 7.51 ▼38.02 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.64 | 7.15 ▼83.14 |
Media Library /wp-admin/upload.php | 2.24 ▼0.98 | 5.63 ▼29.82 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_advancedrecentposts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Most Recent Posts Mod
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.32 ▼1.07 | 2.02 ▲0.09 | 44.34 ▼0.43 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲1.04 | 102.45 ▼14.67 | 37.80 ▼8.72 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.03 | 40.38 ▲5.12 | 33.86 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,514 ▼22 | 23.35 ▲0.44 | 674.34 ▲18.89 | 63.54 ▲7.14 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.00 | 104.52 ▼3.89 | 46.28 ▼1.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- 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 did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_advancedrecentposts
- widget_theysaidso_widget
- widget_recent-posts
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
Almost there! Just fix the following items
- 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
6 plugin tags: most recent, advanced, recent posts, thumbnail, recent...
advanced-most-recent-posts-mod/adv-most-recent.php 92% from 13 tests
The main PHP script in "Advanced Most Recent Posts Mod" version 1.6.5.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected