Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.34MB] [CPU: ▼303.45ms] Passed 4 tests
Analyzing server-side resources used by Advance Post Prefix
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 53.56 ▲1.67 |
Dashboard /wp-admin | 3.28 ▼0.13 | 21.77 ▼11.29 |
Posts /wp-admin/edit.php | 3.33 ▼0.31 | 22.14 ▼15.28 |
Add New Post /wp-admin/post-new.php | 6.08 ▼0.89 | 78.09 ▼1,173.48 |
Media Library /wp-admin/upload.php | 3.29 ▼0.02 | 18.03 ▼13.73 |
Post Prefix /wp-admin/admin.php?page=advance-post-prefix | 3.26 | 20.13 |
Add new /wp-admin/admin.php?page=add-prefix | 3.26 | 20.85 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: 1 new table, no new options
New tables |
---|
wp_post_prefix |
Browser metrics Passed 4 tests
A check of browser resources used by Advance Post Prefix
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,849 ▲96 | 16.20 ▲0.43 | 5.76 ▼0.20 | 2.30 ▼0.94 |
Dashboard /wp-admin | 2,957 ▲96 | 6.25 ▲0.10 | 123.10 ▼14.12 | 195.06 ▲30.03 |
Posts /wp-admin/edit.php | 2,747 ▲59 | 3.14 ▼0.10 | 66.78 ▲4.66 | 151.52 ▲4.21 |
Add New Post /wp-admin/post-new.php | 1,685 ▼26 | 16.29 ▼4.48 | 406.11 ▼53.74 | 199.30 ▲42.26 |
Media Library /wp-admin/upload.php | 1,732 ▲34 | 5.61 ▲0.09 | 123.46 ▼22.46 | 198.83 ▲5.40 |
Post Prefix /wp-admin/admin.php?page=advance-post-prefix | 1,061 | 2.53 | 54.12 | 102.79 |
Add new /wp-admin/admin.php?page=add-prefix | 1,072 | 2.40 | 52.81 | 113.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-prefix
- > Notice in wp-content/plugins/advance-post-prefix/advance_post_prefix.php+88
Undefined index: post
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/advance-post-prefix/wpp_add.php
- > /wp-content/plugins/advance-post-prefix/prefix_choose.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/advance-post-prefix/wpp_dashboard.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/advance-post-prefix/wpp_dashboard.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advance-post-prefix/advance_post_prefix.php:173
- > PHP Notice
Undefined variable: prefix in wp-content/plugins/advance-post-prefix/wpp_dashboard.php on line 19
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== advance-post-prefix ===
) - Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in advance-post-prefix/assets to your readme.txt
advance-post-prefix/advance_post_prefix.php 85% from 13 tests
The principal PHP file in "Advance Post Prefix" v. 1.1.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advance-post-prefix.php" instead of "advance_post_prefix.php")
- Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
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
Good job! No executable or dangerous file extensions detected241 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 17 | 23 | 241 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
post-prefix-ico.png | 3.13KB | 0.75KB | ▼ 76.13% |