83% cip-dtac-for-give

Code Review | Donate to Access Content

WordPress plugin Donate to Access Content scored83%from 54 tests.

About plugin

  • Plugin page: cip-dtac-for-give
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Nov 9, 2017
  • Latest release: Jul 30, 2022
  • Number of updates: 30
  • Update frequency: every 57.5 days
  • Top authors: rupakdhiman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /956 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /16.86 ▲13.352,614,828.71 ▲2,614,785.33
Dashboard /wp-admin3.35 ▼0.0447.58 ▼18.81
Posts /wp-admin/edit.php3.40 ▲0.0054.88 ▲0.29
Add New Post /wp-admin/post-new.php5.93 ▲0.0089.09 ▼24.49
Media Library /wp-admin/upload.php3.27 ▲0.0038.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.57 ▲0.571.72 ▲0.1239.34 ▼4.33
Dashboard /wp-admin2,195 ▲185.62 ▲0.0090.13 ▼5.7541.25 ▼2.75
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0539.49 ▲3.2534.90 ▼0.96
Add New Post /wp-admin/post-new.php1,536 ▲823.20 ▲0.23697.94 ▲18.6250.79 ▼16.13
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.04102.76 ▼3.9446.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

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")
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
CSS2517216,990
PHP275951,3941,378
PO File10014
JavaScript1106
JSON1001

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 code0.40
Average class complexity8.90
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces2
Traits1
Classes18
▷ Abstract classes211.11%
▷ Concrete classes1688.89%
▷ Final classes16.25%
Methods110
▷ Static methods54.55%
▷ Public methods7063.64%
▷ Protected methods2018.18%
▷ Private methods2018.18%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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