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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲2.48ms] Passed 4 tests
A check of server-side resources used by Content Freeze
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.15 ▲1.16 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.55 ▲2.86 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 49.11 ▲0.03 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 123.03 ▲23.73 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 40.90 ▲5.87 |
Content Freeze /wp-admin/options-general.php?page=content_freeze | 3.20 | 29.58 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
content_freeze_options |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Content Freeze
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.53 | 1.87 ▲0.21 | 41.75 ▼0.35 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▲0.01 | 91.50 ▲4.89 | 39.48 ▼4.17 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▲0.01 | 39.42 ▲4.09 | 35.13 ▲3.36 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.15 ▼0.03 | 754.17 ▲54.32 | 65.01 ▲12.27 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.24 ▲0.08 | 115.97 ▲12.81 | 46.43 ▲3.51 |
Content Freeze /wp-admin/options-general.php?page=content_freeze | 892 | 2.14 | 37.06 | 27.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- content_freeze_options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=content_freeze
- > Notice in wp-content/plugins/content-freeze/settings.php+121
Undefined index: mbox_example_text
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: maintenance, migration, content freeze, code lock, content lock
content-freeze/content-freeze.php Passed 13 tests
The primary PHP file in "Content Freeze" version 0.1.3 is used by WordPress to initiate all plugin functionality
104 characters long description:
The content freeze plugin would allow an admin to 'lock' all content on the site for a given time period
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
No dangerous file extensions were detected215 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 60 | 215 |
PHP code Passed 2 tests
Analyzing 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.28 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 3 | 11.54% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin