Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.93ms] Passed 4 tests
Server-side resources used by WP Smart Content Protection
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.91 ▲1.45 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.92 ▼1.13 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.24 ▲0.46 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.37 ▼4.49 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.57 ▲4.49 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
wpscp_right_click |
wpscp_paste |
db_upgraded |
wpscp_cut |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
wpscp_copy |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Smart Content Protection: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.77 ▲0.01 | 1.97 ▲0.32 | 43.70 ▲2.63 |
Dashboard /wp-admin | 2,222 ▲37 | 4.82 ▼1.07 | 111.61 ▲12.94 | 42.56 ▲1.59 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 2.03 ▲0.06 | 36.89 ▼1.11 | 32.91 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,527 ▼8 | 17.36 ▼5.76 | 665.87 ▼29.06 | 62.61 ▲1.45 |
Media Library /wp-admin/upload.php | 1,398 ▲16 | 4.13 ▼0.02 | 103.44 ▲6.01 | 43.24 ▼1.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- wpscp_copy
- wpscp_cut
- wpscp_right_click
- widget_recent-posts
- wpscp_paste
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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 fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/wp-smart-content-protection/page/setting.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-smart-content-protection/wp-smart-content-protection.php:217
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 75% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tested up to: Invalid version format
- Requires at least: Invalid version format
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
wp-smart-content-protection/wp-smart-content-protection.php 85% from 13 tests
The primary PHP file in "WP Smart Content Protection" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 305 characters long)
- Text Domain: The text domain should only use lowercase characters and dashes
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
There were no executable files found in this plugin126 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 97 | 37 | 126 |
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.12 |
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 | 2 | |
▷ Global constants | 2 | 100.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.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 49.23KB | 19.01KB | ▼ 61.39% |