Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.00ms] Passed 4 tests
Server-side resources used by Wordpress Data Guard [Website Security]
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 31.42 ▼13.69 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.29 ▲1.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.17 ▼0.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.79 ▼6.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.42 ▲1.03 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Wordpress Data Guard [Website Security]: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲149 | 13.94 ▼0.25 | 9.16 ▲7.12 | 44.88 ▼0.73 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▼0.02 | 108.68 ▼0.99 | 43.33 ▼3.16 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.02 | 35.75 ▼2.80 | 32.61 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,532 ▲11 | 23.55 ▲0.29 | 657.28 ▼35.15 | 51.31 ▼10.92 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.17 ▼0.05 | 95.14 ▼15.71 | 41.39 ▼6.27 |
Wordpress Data Guard /wp-admin/wordpress-data-guard.php | 26 | 0.44 | 0.08 | 13.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wordpress-data-guards/index.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wordpress-data-guards/wordpress-data-guard.php:29
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/wordpress-data-guard.php
- > Network (severe)
wp-admin/wordpress-data-guard.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Settings Page) image required
- Tags: There are too many tags (12 tag instead of maximum 10)
- Requires at least: The plugin version is formatted incorrectly
wordpress-data-guards/wordpress-data-guard.php 77% from 13 tests
The main file in "Wordpress Data Guard [Website Security]" v. 8... serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wordpress-data-guards.php" instead of "wordpress-data-guard.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "8...")
- Description: The description should be shorter than 140 characters (currently 665 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin204 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 13 | 22 | 195 |
JavaScript | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
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 | 12 | |
▷ Named functions | 12 | 100.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
buy_wordpress_data_guard_pro.png | 62.24KB | 17.20KB | ▼ 72.36% |