78% conveyour-wp

Code Review | ConveYour for WordPress

WordPress plugin ConveYour for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: conveyour-wp
  • Plugin version: 1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2014
  • Latest release: Feb 22, 2017
  • Number of updates: 26
  • Update frequency: every 30.7 days
  • Top authors: srhyne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,943 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.99ms] Passed 4 tests

An overview of server-side resources used by ConveYour for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.57 ▲3.61
Dashboard /wp-admin3.39 ▲0.0942.16 ▼1.88
Posts /wp-admin/edit.php3.51 ▲0.1552.21 ▲4.78
Add New Post /wp-admin/post-new.php5.97 ▲0.0988.42 ▼2.59
Media Library /wp-admin/upload.php3.32 ▲0.0933.79 ▼7.08

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

ConveYour for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.19 ▼1.564.53 ▲2.8444.02 ▲1.39
Dashboard /wp-admin2,222 ▲374.88 ▼0.14114.59 ▼19.2441.97 ▼9.58
Posts /wp-admin/edit.php2,108 ▲192.03 ▼0.0160.39 ▲22.3847.59 ▲11.40
Add New Post /wp-admin/post-new.php1,527 ▲1317.75 ▼5.92701.44 ▲2.3069.48 ▲8.68
Media Library /wp-admin/upload.php1,404 ▲134.13 ▼0.11117.13 ▲8.9149.34 ▲5.88

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/conveyour-wp/conveyour.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Conveyour_Async_Task' not found in wp-content/plugins/conveyour-wp/includes/conveyour-login-task.php:3
    • > PHP Warning
      require_once(CONVEYOUR_PLUGIN_DIR/includes/conveyour-api.php): failed to open stream: No such file or directory in wp-content/plugins/conveyour-wp/includes/conveyour-client.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/conveyour-wp/ninja-popups.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'CONVEYOUR_PLUGIN_DIR/includes/conveyour-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/conveyour-wp/includes/conveyour-client.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Task' not found in wp-content/plugins/conveyour-wp/includes/conveyour-async.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Conveyour_Async_Task' not found in wp-content/plugins/conveyour-wp/course-press.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Conveyour_Async_Task' not found in wp-content/plugins/conveyour-wp/includes/conveyour-identify-task.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Conveyour_Async_Task' not found in wp-content/plugins/conveyour-wp/gravity-forms.php:6
    • > PHP Warning
      Use of undefined constant CONVEYOUR_PLUGIN_DIR - assumed 'CONVEYOUR_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/conveyour-wp/includes/conveyour-client.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: syncing, gravity-forms, coursepress, analytics

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

The entry point to "ConveYour for WordPress" version 1.3.7 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("conveyour-wp.php" instead of "conveyour.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected983 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP11251253983

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity10.08
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes325.00%
▷ Concrete classes975.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods2146.67%
▷ Protected methods2453.33%
▷ Private methods00.00%
Functions21
▷ Named functions2095.24%
▷ Anonymous functions14.76%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin