78% wpcondify

Code Review | WPCondify - Personalize your website contents

WordPress plugin WPCondify - Personalize your website contents scored78%from 54 tests.

About plugin

  • Plugin page: wpcondify
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2023
  • Latest release: Aug 1, 2023
  • Number of updates: 5
  • Update frequency: every 191.2 days
  • Top authors: wpsega (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼3.00ms] Passed 4 tests

Analyzing server-side resources used by WPCondify - Personalize your website contents
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1438.38 ▼12.15
Dashboard /wp-admin3.61 ▲0.3150.43 ▼7.20
Posts /wp-admin/edit.php3.66 ▲0.3155.03 ▲4.89
Add New Post /wp-admin/post-new.php6.14 ▲0.2596.93 ▲6.19
Media Library /wp-admin/upload.php3.52 ▲0.3040.00 ▲2.47
Create Trigger /wp-admin/post-new.php?post_type=wpcondify3.5848.21
WPCondify /wp-admin/admin.php?page=wpcondify3.4437.01
All Triggers /wp-admin/edit.php?post_type=wpcondify3.5843.37

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WPCondify - Personalize your website contents
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8714.36 ▲0.012.33 ▲0.6415.35 ▼31.32
Dashboard /wp-admin2,274 ▲975.65 ▲0.0493.54 ▼0.4041.23 ▼9.35
Posts /wp-admin/edit.php2,176 ▲732.05 ▲0.0142.33 ▲0.7736.17 ▼0.60
Add New Post /wp-admin/post-new.php6,269 ▲4,74321.21 ▼2.441,596.42 ▲931.6772.68 ▼5.08
Media Library /wp-admin/upload.php1,479 ▲854.23 ▲0.0599.98 ▲0.3643.19 ▼1.13
Create Trigger /wp-admin/post-new.php?post_type=wpcondify1,6513.4863.4470.25
WPCondify /wp-admin/admin.php?page=wpcondify8792.5130.4931.32
All Triggers /wp-admin/edit.php?post_type=wpcondify1,1452.8134.0228.53

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(WPCONDIFY_DIR_PATHincludes/controls/maker.php): failed to open stream: No such file or directory in wp-content/plugins/wpcondify/libs/condition.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'Condify\\Controls\\Repeater_Control_Base' not found in wp-content/plugins/wpcondify/includes/controls/operating-system.php:5
    • > PHP Warning
      Use of undefined constant WPCONDIFY_DIR_PATH - assumed 'WPCONDIFY_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpcondify/libs/condition.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'WPCONDIFY_DIR_PATHincludes/controls/maker.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpcondify/libs/condition.php on line 7

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=wpcondify
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: _.debounce is not a function" "TypeError: _.debounce is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/js/post.min.js?ver=6.3.1:2:18967)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=wpcondify
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: _.debounce is not a function

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
You can take inspiration from this readme.txt

wpcondify/wpcondify.php Passed 13 tests

Analyzing the main PHP file in "WPCondify - Personalize your website contents" version 1.0.0
33 characters long description:
Personalize your website contents

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin10,532 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
JSON4007,417
PHP515968212,923
JavaScript440107139
Sass33138
CSS302315

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity6.31
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces7
Interfaces0
Traits1
Classes47
▷ Abstract classes36.38%
▷ Concrete classes4493.62%
▷ Final classes12.27%
Methods164
▷ Static methods2716.46%
▷ Public methods14387.20%
▷ Protected methods2012.20%
▷ Private methods10.61%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants24
▷ Global constants729.17%
▷ Class constants1770.83%
▷ Public constants17100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin