84% wp-jcryption

Code Review | WP jCryption Security

WordPress plugin WP jCryption Security scored84%from 54 tests.

About plugin

  • Plugin page: wp-jcryption
  • Plugin version: 0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Jan 1, 2015
  • Latest release: May 16, 2015
  • Number of updates: 12
  • Update frequency: every 83.6 days
  • Top authors: andreyk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,096 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.61ms] Passed 4 tests

Server-side resources used by WP jCryption Security
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.62 ▲0.40
Dashboard /wp-admin3.38 ▲0.0752.16 ▲1.68
Posts /wp-admin/edit.php3.49 ▲0.1450.17 ▲1.51
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.24 ▼10.03
Media Library /wp-admin/upload.php3.30 ▲0.0744.83 ▲6.23
WP jCryption /wp-admin/options-general.php?page=wp_jcryption3.2734.24

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
wp_jcryption_forms
widget_recent-posts
widget_recent-comments
can_compress_scripts
wp_jcryption

Browser metrics Passed 4 tests

An overview of browser requirements for WP jCryption Security
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8414.58 ▼0.171.62 ▼0.4544.12 ▼1.73
Dashboard /wp-admin2,207 ▲194.81 ▼1.0599.06 ▼9.4442.10 ▼0.90
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0141.46 ▼5.0736.66 ▼0.87
Add New Post /wp-admin/post-new.php1,535 ▲122.01 ▼0.99697.13 ▲5.4362.69 ▲8.53
Media Library /wp-admin/upload.php1,389 ▲14.17 ▲0.05115.11 ▼3.3347.99 ▼0.81
WP jCryption /wp-admin/options-general.php?page=wp_jcryption8792.0522.5332.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • wp_jcryption
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • wp_jcryption_forms

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-jcryption/wp-jcryption.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: password, jquery, security, login, aes...

wp-jcryption/wp-jcryption.php 92% from 13 tests

"WP jCryption Security" version 0.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 475 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin4,135 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33431,1813,503
PHP35365332
PO File480156296
Markdown1303
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.50
▷ Minimum class complexity3.00
▷ Maximum class complexity10.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods444.44%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
wpjc-icon16x20.png3.65KB1.19KB▼ 67.43%