94% gravitate-encryption

Code Review | Gravitate Encryption

WordPress plugin Gravitate Encryption scored 94% from 54 tests.

About plugin

  • Plugin page: gravitate-encryption
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6.1
  • WordPress version: 5.9.2
  • First release: May 22, 2013
  • Latest release: Oct 19, 2013
  • Number of updates: 27
  • Update frequency: every 36.2 days
  • Top authors: Gravitate (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active / 5,495 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼343.98ms] Passed 4 tests

Analyzing server-side resources used by Gravitate Encryption
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1754.98 ▲3.94
Dashboard /wp-admin3.51 ▲0.1133.90 ▲1.66
Posts /wp-admin/edit.php3.74 ▲0.1039.20 ▲1.23
Add New Post /wp-admin/post-new.php6.98 ▲0.0299.50 ▼1,377.23
Media Library /wp-admin/upload.php3.39 ▲0.0925.74 ▼1.58
Gravitate Encryption /wp-admin/options-general.php?page=gds-encryption-custom-submenu-page3.3623.39

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Gravitate Encryption
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲1015.76 ▼0.225.99 ▲0.112.29 ▼0.43
Dashboard /wp-admin2,897 ▲366.08 ▼0.18119.50 ▼11.91154.03 ▼6.74
Posts /wp-admin/edit.php2,693 ▼13.23 ▼0.1561.35 ▼3.10141.22 ▼0.85
Add New Post /wp-admin/post-new.php1,658 ▼320.41 ▲3.58422.95 ▲0.20158.21 ▼5.96
Media Library /wp-admin/upload.php1,703 ▲55.54 ▲0.01148.01 ▲3.20192.83 ▼4.86
Gravitate Encryption /wp-admin/options-general.php?page=gds-encryption-custom-submenu-page1,5702.4355.50141.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gravitate-encryption/gds_encryption.php:32

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: encryption, gravity forms, gravitate

gravitate-encryption/gds_encryption.php 85% from 13 tests

"Gravitate Encryption" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gravitate-encryption.php" instead of "gds_encryption.php")
  • Description: The description should be shorter than 140 characters (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin687 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111934687

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity80.00
▷ Minimum class complexity80.00
▷ Maximum class complexity80.00
Average method complexity6.64
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1178.57%
▷ Protected methods00.00%
▷ Private methods321.43%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin