Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼143.56ms] Passed 4 tests
An overview of server-side resources used by WP Post Expires
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 33.67 ▲13.11 |
Dashboard /wp-admin | 3.14 ▲0.08 | 44.26 ▼5.27 |
Posts /wp-admin/edit.php | 3.22 ▲0.12 | 45.04 ▲0.07 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.08 | 90.74 ▼570.71 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 33.51 ▲1.66 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Post Expires
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.32 ▲0.64 | 12.84 ▲1.78 | 44.76 ▼0.03 |
Dashboard /wp-admin | 2,970 ▲36 | 5.90 ▼0.25 | 147.31 ▼15.67 | 105.36 ▼2.26 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.70 ▼0.01 | 68.55 ▼3.58 | 84.59 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,725 ▲42 | 21.70 ▲2.94 | 284.09 ▼112.25 | 118.85 ▲12.78 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.00 | 161.01 ▲8.04 | 106.69 ▼10.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-expires/wp-post-expires.php:320
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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
5 plugin tags: wordpress post expiry, expiration, expire, posts expiring, expired post
wp-post-expires/wp-post-expires.php 92% from 13 tests
The main file in "WP Post Expires" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 154 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
Success! There were no dangerous files found in this plugin410 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 66 | 24 | 240 |
PO File | 2 | 34 | 38 | 96 |
JavaScript | 2 | 10 | 0 | 66 |
CSS | 2 | 0 | 0 | 6 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 20 | |
▷ Static methods | 4 | 20.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |