Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.14ms] Passed 4 tests
A check of server-side resources used by Super Advanced Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.00 ▼2.52 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.46 ▲1.41 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 50.21 ▼0.60 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.95 ▼17.64 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.95 ▼3.79 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_super_advanced_posts |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Super Advanced Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 13.23 ▼1.01 | 4.98 ▲3.17 | 43.39 ▼4.55 |
Dashboard /wp-admin | 2,209 ▲21 | 4.88 ▼0.00 | 115.11 ▲8.69 | 45.98 ▲1.55 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 1.99 ▼0.02 | 35.92 ▼4.76 | 34.79 ▲2.83 |
Add New Post /wp-admin/post-new.php | 1,520 ▼22 | 23.35 ▲5.20 | 643.69 ▼10.76 | 62.05 ▼2.30 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.23 ▲0.05 | 98.41 ▼14.49 | 45.05 ▼3.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_super_advanced_posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/super-advanced-posts/include/admin-function.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/super-advanced-posts/include/admin-function.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Frentend Display Post), #2 (The widget configuration dialog.)
super-advanced-posts/super-advanced-posts.php Passed 13 tests
This is the main PHP file of "Super Advanced Posts" version 3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
119 characters long description:
Adds a widget that can display recent posts and other posts from All categories and taxonomy or from custom post types.
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 detected478 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 70 | 12 | 444 |
CSS | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 60.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 15.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.96MB with 0.60MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-4.png | 453.25KB | 108.81KB | ▼ 75.99% |
screenshot-2.png | 38.63KB | 19.85KB | ▼ 48.62% |
screenshot-1.png | 453.25KB | 108.81KB | ▼ 75.99% |
images/screenshot-3.png | 38.63KB | 19.85KB | ▼ 48.62% |