Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.20ms] Passed 4 tests
Server-side resources used by Post Snapshots
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.20 ▼5.25 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.60 ▼3.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.55 ▲1.60 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.73 ▼9.02 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.30 ▼3.41 |
Post Snapshots /wp-admin/options-general.php?page=post-snapshots | 3.18 | 29.93 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Post Snapshots
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.17 ▼1.21 | 1.68 ▲0.06 | 40.13 ▲2.49 |
Dashboard /wp-admin | 2,215 ▲27 | 5.88 ▲0.84 | 98.81 ▼9.07 | 39.41 ▼4.52 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.05 | 33.85 ▼1.09 | 37.89 ▲5.39 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.22 ▼0.26 | 618.71 ▼68.71 | 54.71 ▼1.54 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.19 ▼0.09 | 94.53 ▼8.09 | 43.19 ▼0.33 |
Post Snapshots /wp-admin/options-general.php?page=post-snapshots | 716 | 1.14 | 6.29 | 22.48 |
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 7 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- recovery_mode_email_last_sent
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=post-snapshots
- > Error in wp-content/plugins/post-snapshots/admin/settings.php+43
Uncaught Error: Call to undefined function get_html_selector_for_array() in wp-content/plugins/post-snapshots/admin/settings.php:43
Stack trace:
#0 wp-includes/class-wp-hook.php(310): pos_show_admin_page()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#5 {main}
thrown
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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-snapshots/admin/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_network_admin() in wp-content/plugins/post-snapshots/post-snapshots.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-snapshots/admin/post-meta-box.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-snapshots/legacy/duplicate-in-overview.php:122
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-snapshots/duplicate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-snapshots/admin/post-meta-box.php:3
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: history, snapshot, revision, post-status
post-snapshots/post-snapshots.php 92% from 13 tests
"Post Snapshots" version 0.9'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:
- Description: The description should be shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin536 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 117 | 101 | 529 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 28 | |
▷ Named functions | 23 | 82.14% |
▷ Anonymous functions | 5 | 17.86% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin