Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▲0.75ms] Passed 4 tests
This is a short check of server-side resources used by C4D Social Locker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.91 ▲0.71 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.24 ▼1.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.71 ▲3.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.66 ▲7.23 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.53 ▲0.09 |
Server storage [IO: ▲0.37MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for C4D Social Locker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲137 | 14.34 ▼0.38 | 47.11 ▲45.61 | 42.91 ▲3.01 |
Dashboard /wp-admin | 2,189 ▲12 | 5.62 ▲0.02 | 110.13 ▲21.54 | 53.32 ▲4.85 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.01 | 45.54 ▲9.31 | 39.88 ▲6.25 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 24.43 ▲1.16 | 665.66 ▼14.64 | 69.19 ▲15.83 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.09 | 98.03 ▲2.53 | 39.24 ▼6.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-social-locker/c4d-social-locker.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
c4d-social-locker/c4d-social-locker.php Passed 13 tests
The entry point to "C4D Social Locker" version 2.0.0 is a PHP file that has certain tags in its header comment area
45 characters long description:
Lock your content until the visitor share it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,090 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 232 | 877 | 1,762 |
JavaScript | 3 | 32 | 13 | 279 |
Sass | 1 | 1 | 0 | 48 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 3 | 4.23% |
▷ Public methods | 20 | 28.17% |
▷ Protected methods | 50 | 70.42% |
▷ Private methods | 1 | 1.41% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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