Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.18ms] Passed 4 tests
Server-side resources used by PicDefense.io - Your Guard Against Image Copyright Infringement
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.67 ▼2.21 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.59 ▼15.55 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.04 ▼6.99 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 78.79 ▼19.95 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.97 ▲2.10 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
picdefense_rescan_images |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
picdefense_inc_all_imgs |
Browser metrics Passed 4 tests
PicDefense.io - Your Guard Against Image Copyright Infringement: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.78 ▲0.50 | 1.78 ▼0.06 | 44.73 ▲1.59 |
Dashboard /wp-admin | 2,235 ▲58 | 5.69 ▲0.00 | 84.07 ▼16.29 | 39.70 ▼4.52 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.27 ▲0.30 | 37.10 ▲0.70 | 33.04 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 23.32 ▲0.29 | 661.79 ▼30.54 | 54.20 ▼0.66 |
Media Library /wp-admin/upload.php | 1,443 ▲46 | 4.36 ▲0.15 | 99.85 ▼0.72 | 42.07 ▼2.68 |
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 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- picdefense_rescan_images
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
- 2× 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/picdefense-io-image-copyright-risk-checker/picdefense-io-setting.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/picdefense-io-image-copyright-risk-checker/picdefense.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== picdefense-io-image-copyright-risk-checker ===
)
picdefense-io-image-copyright-risk-checker/picdefense.php 77% from 13 tests
"PicDefense.io - Your Guard Against Image Copyright Infringement" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("picdefense-io-image-copyright-risk-checker.php" instead of "picdefense.php")
- Description: The description should be shorter than 140 characters (currently 147 characters long)
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
No dangerous file extensions were detected1,144 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 99 | 30 | 1,056 |
JavaScript | 2 | 4 | 0 | 53 |
CSS | 2 | 0 | 0 | 35 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 113.00 |
▷ Minimum class complexity | 113.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin