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.03MB] [CPU: ▼10.81ms] Passed 4 tests
An overview of server-side resources used by Formula04 Site Lock
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.40 ▼2.21 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.51 ▼5.69 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.89 ▼2.99 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.39 ▼32.36 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.60 ▲2.13 |
F04 Site Lock /wp-admin/options-general.php?page=formula04-site-lock | 3.24 | 38.49 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Formula04 Site Lock
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.78 ▲0.52 | 1.97 ▲0.22 | 44.20 ▼0.24 |
Dashboard /wp-admin | 2,206 ▲26 | 5.76 ▲0.08 | 94.42 ▲1.91 | 43.64 ▲4.40 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.15 ▲0.13 | 38.43 ▼2.05 | 34.17 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.72 ▲0.49 | 706.50 ▲89.72 | 54.55 ▼5.79 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.36 ▲0.21 | 116.34 ▲15.77 | 48.51 ▲3.29 |
F04 Site Lock /wp-admin/options-general.php?page=formula04-site-lock | 892 | 2.28 | 33.73 | 30.02 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/formula04-site-lock/form04_sitelock.php:59
- > 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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: private content, security, password protect, password, restrict access...
formula04-site-lock/form04_sitelock.php 92% from 13 tests
The principal PHP file in "Formula04 Site Lock" v. 1.5.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("formula04-site-lock.php" instead of "form04_sitelock.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
Success! There were no dangerous files found in this plugin514 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 992 | 168 | 501 |
HTML | 1 | 1 | 0 | 9 |
XML | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 81.00 |
▷ Minimum class complexity | 81.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 32 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected