Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▲1.55ms] Passed 4 tests
Server-side resources used by DMCA Protection Badge
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 1,282.06 ▲1,237.62 |
Dashboard /wp-admin | 3.59 ▲0.29 | 49.42 ▲0.19 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 51.62 ▲5.82 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 86.73 ▼9.54 |
Media Library /wp-admin/upload.php | 3.51 ▲0.29 | 42.95 ▲9.75 |
DMCA Badge /wp-admin/options-general.php?page=dmca-badge-settings | 3.52 | 36.37 |
DMCA Badge Reset /wp-admin/tools.php?page=dmca-badge-reset | 3.42 | 35.20 |
Server storage [IO: ▲7.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 291 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_dmca_widget_badge |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for DMCA Protection Badge
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲66 | 13.38 ▼1.20 | 2.07 ▲0.25 | 36.70 ▼14.01 |
Dashboard /wp-admin | 2,214 ▲23 | 5.85 ▲0.77 | 95.34 ▼10.12 | 38.61 ▼0.33 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.01 ▲0.02 | 38.80 ▼1.02 | 35.24 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 22.92 ▲5.46 | 677.78 ▼9.58 | 56.15 ▲0.78 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.21 ▼0.02 | 100.55 ▼0.84 | 43.21 ▼2.61 |
DMCA Badge /wp-admin/options-general.php?page=dmca-badge-settings | 1,122 | 5.06 | 115.61 | 60.92 |
DMCA Badge Reset /wp-admin/tools.php?page=dmca-badge-reset | 787 | 2.02 | 23.71 | 26.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'DMCA_Badge_Plugin' does not have a method 'deactivate'
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_dmca_widget_badge
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dmca-badge/libraries/dmca-api-client/dmca-api-client.php
- 45× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/dmca-badge/classes/class-list-pages.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'RESTian_Client' not found in wp-content/plugins/dmca-badge/libraries/dmca-api-client/classes/class-api-client.php:13
- > PHP Fatal error
Uncaught Error: Class 'RESTian_Parser_Base' not found in wp-content/plugins/dmca-badge/libraries/sidecar/restian/parsers/application-xml-parser.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/dmca-badge/classes/class-test-page.php:28
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/dmca-badge/classes/class-list-pages.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'RESTian_Parser_Base' not found in wp-content/plugins/dmca-badge/libraries/restian/parsers/text-csv-parser.php:6
- > PHP Fatal error
Uncaught Error: Class 'RESTian_Parser_Base' not found in wp-content/plugins/dmca-badge/libraries/restian/parsers/application-serialized-php.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dmca-badge/classes/class-list-pages.php on line 7
- > PHP Notice
Undefined index: HOME in wp-content/plugins/dmca-badge/libraries/dmca-api-client/tests/DMCA_API_ClientTest.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'RESTian_Parser_Base' not found in wp-content/plugins/dmca-badge/libraries/sidecar/restian/parsers/text-csv-parser.php:6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: badge, takedown, copyright, content theft, dmca...
dmca-badge/dmca-badge.php 92% from 13 tests
"DMCA Protection Badge" version 2.1.60's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 285 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin59,104 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 96 | 11,688 | 0 | 31,717 |
PHP | 67 | 2,546 | 5,938 | 22,783 |
JavaScript | 5 | 180 | 347 | 2,026 |
CSS | 3 | 327 | 216 | 1,653 |
XML | 3 | 0 | 0 | 748 |
Markdown | 5 | 77 | 0 | 170 |
JSON | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 73.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 617.00 |
Average method complexity | 7.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 9 | 14.52% |
▷ Concrete classes | 53 | 85.48% |
▷ Final classes | 1 | 1.89% |
Methods | 688 | |
▷ Static methods | 50 | 7.27% |
▷ Public methods | 647 | 94.04% |
▷ Protected methods | 9 | 1.31% |
▷ Private methods | 32 | 4.65% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 18 | 94.74% |
▷ Class constants | 1 | 5.26% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
36 PNG files occupy 1.46MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libraries/sidecar/restian/docs/api/resources/inherit.png | 0.15KB | 0.10KB | ▼ 29.61% |
images/dmca-icon.png | 6.92KB | 3.35KB | ▼ 51.60% |
libraries/sidecar/docs/api/resources/tree-vertical.png | 0.12KB | 0.08KB | ▼ 31.50% |
libraries/sidecar/docs/api/resources/resize.png | 0.21KB | 0.10KB | ▼ 51.39% |
libraries/sidecar/docs/api/resources/tree-last.png | 0.17KB | 0.11KB | ▼ 36.05% |