10% cryptx

Code Review | CryptX

WordPress plugin CryptX scored 10% from 54 tests.

About plugin

  • Plugin page: cryptx
  • Plugin version: 3.3.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Oct 10, 2007
  • Latest release: Aug 9, 2023
  • Number of updates: 123
  • Update frequency: every 47.0 days
  • Top authors: d3395 (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

10,000+ active / 208,200 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/cryptx/include/functions.php+144
    Trying to access array offset on value of type null

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.21ms] Passed 4 tests

Analyzing server-side resources used by CryptX
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1945.27 ▼0.22
Dashboard /wp-admin3.48 ▲0.1844.98 ▼3.20
Posts /wp-admin/edit.php3.60 ▲0.2449.81 ▲2.37
Add New Post /wp-admin/post-new.php6.06 ▲0.1898.20 ▼3.79
Media Library /wp-admin/upload.php3.41 ▲0.1836.51 ▲3.46
CryptX /wp-admin/options-general.php?page=cryptx3.4136.61

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
cryptX
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

CryptX: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.15 ▼1.141.69 ▼0.4144.73 ▼5.24
Dashboard /wp-admin2,207 ▲194.86 ▼0.02101.17 ▼16.6140.15 ▼7.31
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0140.10 ▲3.8335.90 ▲2.19
Add New Post /wp-admin/post-new.php6,461 ▲4,92619.99 ▼3.21893.87 ▲288.6861.04 ▲11.36
Media Library /wp-admin/upload.php1,392 ▲74.27 ▲0.1097.41 ▼7.7341.75 ▼0.74
CryptX /wp-admin/options-general.php?page=cryptx1,1763.2839.9629.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • cryptX
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptx/include/admin_presentation.php:135
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptx/include/admin_general.php:85
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptx/include/admin_changelog.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptx/include/admin_howto.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
  • Screenshots: No descriptions were found for these screenshots #3, #4 in cryptx/assets to your readme.txt
You can look at the official readme.txt

cryptx/cryptx.php 92% from 13 tests

This is the main PHP file of "CryptX" version 3.3.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 328 characters long)

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
No dangerous file extensions were detected1,038 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP7101182822
JavaScript4153099
Sass216098
CSS217019

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected