Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.68ms] Passed 4 tests
An overview of server-side resources used by Electric Studio Auto Post Expire
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.15 ▲1.71 |
Dashboard /wp-admin | 3.41 ▲0.11 | 44.86 ▼0.12 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.43 ▲3.81 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 86.16 ▼8.10 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 44.78 ▲13.50 |
Post Expiry /wp-admin/options-general.php?page=es_ape_options_page | 3.31 | 31.42 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
es_ape_pt |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Electric Studio Auto Post Expire
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.26 ▼1.32 | 1.77 ▲0.01 | 42.61 ▼1.68 |
Dashboard /wp-admin | 2,225 ▲40 | 4.94 ▼0.91 | 110.57 ▲5.36 | 36.96 ▼5.46 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.08 ▲0.08 | 41.37 ▼2.81 | 35.27 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,667 ▲134 | 20.55 ▼2.61 | 684.06 ▲60.76 | 69.66 ▲2.31 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.30 ▲0.08 | 97.83 ▼6.73 | 40.08 ▼5.46 |
Post Expiry /wp-admin/options-general.php?page=es_ape_options_page | 1,811 | 1.83 | 26.32 | 31.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/electric-studio-auto-expire-post/electric-studio-auto-post-expire.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== electric-studio-auto-expire-post ===
) - Screenshots: These screenshots require images: #1 (The options menu), #2 (The added metabox to the edit post/page/attachment page)
electric-studio-auto-expire-post/electric-studio-auto-post-expire.php 92% from 13 tests
"Electric Studio Auto Post Expire" version 1.6.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("electric-studio-auto-expire-post.php" instead of "electric-studio-auto-post-expire.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,008 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 123 | 257 | 462 |
CSS | 3 | 25 | 62 | 326 |
JavaScript | 3 | 11 | 47 | 170 |
Sass | 1 | 1 | 0 | 50 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 6 | 23.08% |
▷ Public methods | 25 | 96.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.85% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
30 PNG files occupy 0.45MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 218.56KB | 73.45KB | ▼ 66.39% |
css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png | 0.09KB | 0.09KB | 0.00% |
css/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
css/images/ui-icons_469bdd_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-bg_flat_55_fbec88_40x100.png | 0.18KB | 0.08KB | ▼ 52.20% |