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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼8.10ms] Passed 4 tests
An overview of server-side resources used by Social Locker & Content Locker - Locker Cat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.67 ▼0.48 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.48 ▼5.21 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 45.55 ▼12.45 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 86.88 ▼12.36 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.87 ▼2.37 |
Server storage [IO: ▲1.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Social Locker & Content Locker - Locker Cat: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.22 ▼1.14 | 1.64 ▼0.20 | 39.83 ▼3.67 |
Dashboard /wp-admin | 2,218 ▲27 | 5.83 ▼0.06 | 95.36 ▼3.36 | 77.78 ▲31.23 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.14 ▲0.14 | 36.70 ▼1.20 | 39.41 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,539 ▲1 | 23.38 ▲0.34 | 706.69 ▲32.44 | 51.04 ▼2.03 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.13 ▲0.01 | 118.59 ▲10.97 | 46.00 ▲2.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/locker-cat/languages/index.php
- > /wp-content/plugins/locker-cat/locker-cat.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/locker-cat/includes/editor/editor.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/locker-cat/includes/upgrade.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/locker-cat/includes/locker/locker.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/locker-cat/includes/editor/sidebar.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/locker-cat/includes/api.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (A Social Locker built with Social Locker & Content Locker - Locker Cat.), #2 (The user interface of Social Locker & Content Locker - Locker Cat.)
locker-cat/locker-cat.php Passed 13 tests
The entry point to "Social Locker & Content Locker - Locker Cat" version 1.0.1 is a PHP file that has certain tags in its header comment area
45 characters long description:
Provides an easy way to create Social Lockers
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,017 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 145 | 47 | 516 |
CSS | 12 | 30 | 7 | 288 |
JavaScript | 12 | 52 | 22 | 213 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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 | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
5 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 26.21KB | 28.56KB | 0.00% |
assets/fatcatapps-logo-text.png | 16.24KB | 4.88KB | ▼ 69.97% |
screenshot-2.png | 18.62KB | 20.10KB | 0.00% |
assets/LockerCat_icon128x128.png | 27.32KB | 7.90KB | ▼ 71.09% |
assets/icon.png | 0.73KB | 0.60KB | ▼ 17.38% |