Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼11.52ms] Passed 4 tests
This is a short check of server-side resources used by Frontend Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.64 ▼3.39 |
Dashboard /wp-admin | 3.37 ▲0.03 | 52.81 ▼16.83 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.00 ▼7.25 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 89.10 ▼18.61 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.29 ▲1.66 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Frontend Posts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.47 ▼1.19 | 11.92 ▲9.79 | 45.61 ▲2.49 |
Dashboard /wp-admin | 2,199 ▲25 | 5.56 ▲0.02 | 85.74 ▼16.71 | 42.06 ▼2.96 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.00 | 35.61 ▼1.58 | 36.04 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.06 ▼0.11 | 677.20 ▲53.03 | 56.96 ▲8.44 |
Media Library /wp-admin/upload.php | 1,398 ▲4 | 4.20 ▼0.01 | 99.76 ▼5.83 | 44.01 ▲1.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/frontend-posts/admin/partials/frontend_posts-admin-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/frontend-posts/public/partials/frontend_posts-public-display.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== frontend-posts ===
) - Screenshots: No descriptions were found for these screenshots #1, #2 in frontend-posts/assets to your readme.txt
- Donate link: Invalid URI ("www.elsner.com")
frontend-posts/frontend_posts.php 85% from 13 tests
The main PHP script in "Frontend Posts" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("frontend-posts.php" instead of "frontend_posts.php")
- Text Domain: Please use dashes and lowercase characters for text domains
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
Good job! No executable or dangerous file extensions detected485 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 164 | 607 | 414 |
CSS | 2 | 8 | 8 | 36 |
JavaScript | 3 | 10 | 68 | 35 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 6 | |
▷ Named functions | 6 | 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