Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.63MB] [CPU: ▼22.55ms] Passed 4 tests
A check of server-side resources used by Lockee
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.92 ▼1.12 |
Dashboard /wp-admin | 3.39 ▲0.04 | 44.52 ▼17.23 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 43.76 ▼4.00 |
Add New Post /wp-admin/post-new.php | 3.17 ▼2.72 | 34.39 ▼67.84 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.36 ▲1.83 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Lockee
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 14.72 ▲0.43 | 8.79 ▲7.03 | 40.48 ▼1.08 |
Dashboard /wp-admin | 2,208 ▲28 | 5.62 ▼0.02 | 95.67 ▲5.81 | 37.86 ▼0.91 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 2.70 ▲0.75 | 38.46 ▲1.74 | 36.10 ▲4.09 |
Add New Post /wp-admin/post-new.php | 6,415 ▲4,889 | 20.07 ▼3.47 | 925.44 ▲253.64 | 46.00 ▼3.19 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 5.08 ▲0.91 | 93.22 ▼2.57 | 41.03 ▼1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/lockee/fast-ajax.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lockee/lockee.php:289
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: posts, locks
lockee/lockee.php Passed 13 tests
This is the main PHP file of "Lockee" version 2.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
Ajoute les cadenas Lockee à Wordpress.
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
Good job! No executable or dangerous file extensions detected3,025 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 245 | 15 | 1,572 |
JavaScript | 4 | 151 | 22 | 1,153 |
PHP | 2 | 27 | 12 | 300 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
27 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/B-dark.png | 14.61KB | 3.17KB | ▼ 78.31% |
imgs/E-light.png | 8.33KB | 3.66KB | ▼ 56.07% |
imgs/D-light.png | 13.55KB | 2.94KB | ▼ 78.27% |
imgs/layers-2x.png | 1.23KB | 1.67KB | 0.00% |
imgs/B-light.png | 13.86KB | 3.17KB | ▼ 77.12% |