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
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.54ms] Passed 4 tests
An overview of server-side resources used by Donate to Access Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 16.86 ▲13.35 | 2,614,828.71 ▲2,614,785.33 |
Dashboard /wp-admin | 3.35 ▼0.04 | 47.58 ▼18.81 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 54.88 ▲0.29 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 89.09 ▼24.49 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 38.88 ▲0.83 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Donate to Access Content
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.57 ▲0.57 | 1.72 ▲0.12 | 39.34 ▼4.33 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.00 | 90.13 ▼5.75 | 41.25 ▼2.75 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.05 | 39.49 ▲3.25 | 34.90 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.20 ▲0.23 | 697.94 ▲18.62 | 50.79 ▼16.13 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▼0.04 | 102.76 ▼3.94 | 46.01 ▼0.56 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'DTAC\\Interfaces\\InterfaceFormFields' not found in wp-content/plugins/cip-dtac-for-give/src/Controllers/Form/Fields/Wysiwyg.php:18
- > PHP Fatal error
Uncaught Error: Class 'DTAC\\Controllers\\Form\\Form' not found in wp-content/plugins/cip-dtac-for-give/includes/admin/html/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI found ("paypal.me/contriveitup")
cip-dtac-for-give/cip-give-donate-to-access-content.php 77% from 13 tests
The principal PHP file in "Donate to Access Content" v. 2.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 185 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cip-dtac-for-give.php" instead of "cip-give-donate-to-access-content.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected8,389 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 517 | 21 | 6,990 |
PHP | 27 | 595 | 1,394 | 1,378 |
PO File | 1 | 0 | 0 | 14 |
JavaScript | 1 | 1 | 0 | 6 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 8.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 1 | 6.25% |
Methods | 110 | |
▷ Static methods | 5 | 4.55% |
▷ Public methods | 70 | 63.64% |
▷ Protected methods | 20 | 18.18% |
▷ Private methods | 20 | 18.18% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 5 | |
▷ Global constants | 5 | 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
There were not PNG files found in your plugin