Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/content-protect-by-time-lock/WP_ContentProtect.php+79
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.53ms] Passed 4 tests
Analyzing server-side resources used by Content Protect By Time Lock
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.36 ▲2.30 |
Dashboard /wp-admin | 3.34 ▼0.01 | 46.87 ▼8.11 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.18 ▼3.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 96.10 ▼11.19 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.62 ▲0.68 |
Content Protect /wp-admin/options-general.php?page=Wp_ContentProtect | 3.25 | 29.48 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
WP_ContentProtect_settings |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Content Protect By Time Lock
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▼0.08 | 1.70 ▼0.13 | 40.81 ▼4.07 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.99 | 106.50 ▲3.86 | 41.16 ▼2.80 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.00 ▼0.01 | 38.89 ▼2.30 | 34.79 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 17.98 ▲0.35 | 671.58 ▲61.86 | 61.53 ▲1.99 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.15 ▼0.04 | 92.98 ▼4.50 | 43.97 ▼1.45 |
Content Protect /wp-admin/options-general.php?page=Wp_ContentProtect | 832 | 2.04 | 23.99 | 27.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/content-protect-by-time-lock/admin/protect_again_form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/content-protect-by-time-lock/admin/settings_page.php:7
- > PHP Notice
Undefined variable: post in wp-content/plugins/content-protect-by-time-lock/admin/control_metabox.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/content-protect-by-time-lock/admin/protect_setup_form.php:5
- > PHP Notice
Trying to get property 'post_status' of non-object in wp-content/plugins/content-protect-by-time-lock/admin/control_metabox.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/content-protect-by-time-lock/admin/protect_alter_form.php:5
- > PHP Notice
Undefined variable: post in wp-content/plugins/content-protect-by-time-lock/admin/control_metabox.php on line 16
- > PHP Notice
Trying to get property 'post_status' of non-object in wp-content/plugins/content-protect-by-time-lock/admin/control_metabox.php on line 16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/content-protect-by-time-lock/admin/protect_setup_form.php:5
- > 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 on the user side
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
10 plugin tags: menu, login, meta, author, widget...
content-protect-by-time-lock/WP_ContentProtect.php 92% from 13 tests
The main PHP file in "Content Protect By Time Lock" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("content-protect-by-time-lock.php" instead of "WP_ContentProtect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected594 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 42 | 181 | 426 |
PO File | 2 | 44 | 128 | 132 |
CSS | 3 | 3 | 0 | 36 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 27 | |
▷ Static methods | 3 | 11.11% |
▷ Public methods | 26 | 96.30% |
▷ Protected methods | 1 | 3.70% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin