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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼300.40ms] Passed 4 tests
This is a short check of server-side resources used by Add Widget After Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 53.57 ▲1.83 |
Dashboard /wp-admin | 3.44 ▲0.04 | 34.28 ▼6.46 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 37.89 ▼1.65 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 96.06 ▼1,192.01 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 24.22 ▼1.49 |
Widget After Content /wp-admin/themes.php?page=awac-options | 3.34 | 25.14 |
Menus /wp-admin/nav-menus.php | 3.79 | 33.68 |
Widgets /wp-admin/widgets.php | 5.17 | 50.88 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 2 new options
New WordPress options |
---|
awac_priority |
awac_extensions |
Browser metrics Passed 4 tests
An overview of browser requirements for Add Widget After Content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲32 | 16.21 ▲0.19 | 6.95 ▲0.40 | 2.37 ▼0.75 |
Dashboard /wp-admin | 2,907 ▲53 | 6.09 ▼0.12 | 113.82 ▼24.39 | 154.04 ▼7.82 |
Posts /wp-admin/edit.php | 2,672 ▼16 | 3.24 ▲0.01 | 62.67 ▼0.83 | 141.17 ▼7.86 |
Add New Post /wp-admin/post-new.php | 1,701 ▲40 | 17.18 ▲1.14 | 411.97 ▼18.12 | 169.36 ▲14.60 |
Media Library /wp-admin/upload.php | 1,707 ▲6 | 5.44 ▼0.08 | 140.77 ▲1.23 | 187.47 ▲2.84 |
Widget After Content /wp-admin/themes.php?page=awac-options | 1,236 | 2.38 | 55.43 | 115.30 |
Menus /wp-admin/nav-menus.php | 2,252 | 3.43 | 81.99 | 125.29 |
Widgets /wp-admin/widgets.php | 2,484 | 24.16 | 552.50 | 140.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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 no errors were found, this is by no means 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/add-widget-after-content/partials/awac-options-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: widget, posts
add-widget-after-content/add-widget-after-content.php 92% from 13 tests
The entry point to "Add Widget After Content" version 2.4.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
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
There were no executable files found in this plugin1,323 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 432 | 441 | 1,054 |
PO File | 3 | 90 | 96 | 269 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 92.00 |
Average method complexity | 5.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 3 | 6.00% |
▷ Public methods | 44 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/awac-comments.png | 8.40KB | 3.81KB | ▼ 54.68% |
images/awac-styles.png | 15.40KB | 6.47KB | ▼ 58.01% |
images/awac-plus.png | 11.10KB | 5.22KB | ▼ 52.96% |
images/awac-controls.png | 12.12KB | 5.13KB | ▼ 57.70% |