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
Installer ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼284.84ms] Passed 4 tests
A check of server-side resources used by StudioFACA Security
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.17 ▲14.94 |
Dashboard /wp-admin | 2.75 ▼0.30 | 22.21 ▼21.19 |
Posts /wp-admin/edit.php | 2.75 ▼0.35 | 21.30 ▼19.60 |
Add New Post /wp-admin/post-new.php | 2.75 ▼2.68 | 20.97 ▼1,079.59 |
Media Library /wp-admin/upload.php | 2.75 ▼0.25 | 21.26 ▼18.98 |
Server storage [IO: ▲8.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 170 new files
Database: no new tables, 1 new option
New WordPress options |
---|
studiofaca_option_3 |
Browser metrics Passed 4 tests
This is an overview of browser requirements for StudioFACA Security
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,668 ▲62 | 15.77 ▲0.25 | 7.25 ▼1.31 | 48.16 ▲1.47 |
Dashboard /wp-admin | 2,942 ▲92 | 5.95 ▲0.12 | 136.91 ▲0.68 | 126.90 ▲15.41 |
Posts /wp-admin/edit.php | 2,726 ▲20 | 2.57 ▼0.12 | 61.28 ▼3.48 | 85.33 ▼2.63 |
Add New Post /wp-admin/post-new.php | 1,866 ▲215 | 19.29 ▲2.09 | 383.94 ▲26.98 | 106.38 ▼5.84 |
Media Library /wp-admin/upload.php | 1,735 ▼37 | 5.03 ▼0.03 | 131.24 ▼19.12 | 129.41 ▲9.04 |
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
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/studiofaca-security/libs/cidr.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/studiofaca-security/studiofaca_settings.php on line 494
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/studiofaca-security/studiofaca.php:24
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: security, studiofaca, wordpress, plugin
studiofaca-security/studiofaca.php 92% from 13 tests
The primary PHP file in "StudioFACA Security" version 0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("studiofaca-security.php" instead of "studiofaca.php")
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
No dangerous file extensions were detected1,348 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 132 | 199 | 1,348 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.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 | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.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 | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 54 | |
▷ Global constants | 54 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
162 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/country/bj.png | 0.57KB | 0.69KB | 0.00% |
images/country/vn.png | 0.59KB | 0.60KB | 0.00% |
images/country/be.png | 0.56KB | 0.68KB | 0.00% |
images/country/bo.png | 0.61KB | 0.71KB | 0.00% |
images/country/sk.png | 0.63KB | 0.71KB | 0.00% |