Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼301.92ms] Passed 4 tests
An overview of server-side resources used by Add To Post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 54.13 ▲4.53 |
Dashboard /wp-admin | 3.42 ▲0.02 | 32.66 ▼1.48 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 35.76 ▲1.73 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 89.21 ▼1,206.39 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 25.76 ▼1.53 |
Add To Post /wp-admin/options-general.php?page=add-to-post | 3.28 | 22.95 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add To Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲34 | 15.86 ▲0.08 | 5.80 ▼0.25 | 2.42 ▼0.16 |
Dashboard /wp-admin | 2,897 ▲39 | 6.15 ▲0.06 | 122.75 ▼15.03 | 162.52 ▲2.05 |
Posts /wp-admin/edit.php | 2,696 ▲5 | 3.24 ▲0.00 | 64.95 ▲0.16 | 141.40 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,761 ▲100 | 21.93 ▲5.65 | 443.48 ▲33.79 | 158.96 ▲5.61 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.48 ▼0.04 | 140.53 ▼9.38 | 185.58 ▼2.51 |
Add To Post /wp-admin/options-general.php?page=add-to-post | 1,059 | 2.36 | 53.82 | 112.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/add-to-post/add-to-post.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Plugin Activation), #2 (Plugin Settings Page), #3 (Example Usage)
add-to-post/add-to-post.php Passed 13 tests
The entry point to "Add To Post" version 1.0 is a PHP file that has certain tags in its header comment area
107 characters long description:
Add To Post allows you to add additional content to either the start, end or both areas of your blog posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin60 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 11 | 20 | 60 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 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
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 27.79KB | 12.69KB | ▼ 54.33% |
screenshot-3.png | 23.46KB | 10.75KB | ▼ 54.17% |
screenshot-1.png | 26.98KB | 11.56KB | ▼ 57.17% |