Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.75ms] Passed 4 tests
An overview of server-side resources used by Customize Snapshots
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.99 ▲3.98 |
Dashboard /wp-admin | 3.37 ▲0.03 | 53.68 ▼15.46 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.95 ▲0.99 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 95.43 ▼7.93 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 41.81 ▲3.42 |
Changesets /wp-admin/edit.php?post_type=customize_changeset | 3.34 | 40.30 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Customize Snapshots
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 13.31 ▼1.05 | 1.84 ▼0.20 | 41.40 ▼2.01 |
Dashboard /wp-admin | 2,247 ▲44 | 5.79 ▼0.07 | 108.40 ▲4.02 | 37.53 ▼4.27 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.98 ▼0.02 | 40.81 ▲6.34 | 33.84 ▼5.42 |
Add New Post /wp-admin/post-new.php | 1,575 ▲42 | 23.49 ▲0.24 | 643.12 ▼40.95 | 70.92 ▲7.62 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.25 ▲0.03 | 100.66 ▼8.87 | 40.05 ▼4.49 |
Changesets /wp-admin/edit.php?post_type=customize_changeset | 1,098 | 1.98 | 32.64 | 29.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Please fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function CustomizeSnapshots\\add_filter() in wp-content/plugins/customize-snapshots/php/class-plugin.php:40
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Posts_Controller' not found in wp-content/plugins/customize-snapshots/php/class-snapshot-rest-api-controller.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function CustomizeSnapshots\\add_filter() in wp-content/plugins/customize-snapshots/php/class-plugin.php:40
- > PHP Fatal error
Uncaught Error: Class 'CustomizeSnapshots\\Customize_Snapshot_Manager' not found in wp-content/plugins/customize-snapshots/php/class-customize-snapshot-manager-compat.php:17
- > PHP Fatal error
Uncaught Error: Class 'CustomizeSnapshots\\Plugin_Base' not found in wp-content/plugins/customize-snapshots/php/class-plugin.php:13
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (The “Save & Publish” button becomes a combo-button that allows you to select the status for the changeset when saving. In addition to publishing, a changeset can be saved as a permanent draft (as opposed to just an auto-draft), pending review, scheduled for future publishing. A revision is made each time you press the button.)
customize-snapshots/customize-snapshots.php Passed 13 tests
Analyzing the main PHP file in "Customize Snapshots" version 0.7.0
72 characters long description:
Allow Customizer states to be drafted, and previewed with a private URL.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin3,366 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 277 | 960 | 1,840 |
JavaScript | 8 | 283 | 262 | 1,191 |
CSS | 8 | 60 | 2 | 335 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 2 | 1.92% |
▷ Public methods | 102 | 98.08% |
▷ Protected methods | 2 | 1.92% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin