83% vergify-crm

Code Review | Vergify

WordPress plugin Vergify scored83%from 54 tests.

About plugin

  • Plugin page: vergify-crm
  • Plugin version: 1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2017
  • Latest release: Apr 6, 2017
  • Number of updates: 14
  • Update frequency: every 0.9 days
  • Top authors: vergifyllc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.05MB] [CPU: ▼7.19ms] Passed 4 tests

Server-side resources used by Vergify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0130.41 ▼10.50
Dashboard /wp-admin3.38 ▲0.0746.48 ▼4.11
Posts /wp-admin/edit.php3.45 ▲0.0951.00 ▲3.33
Add New Post /wp-admin/post-new.php5.53 ▼0.3683.10 ▼11.57
Media Library /wp-admin/upload.php3.32 ▲0.0934.28 ▼2.57

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vergify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲10914.15 ▼0.202.15 ▲0.4951.70 ▲7.61
Dashboard /wp-admin2,231 ▲575.65 ▲0.0084.79 ▼10.2479.88 ▲39.28
Posts /wp-admin/edit.php2,119 ▲192.00 ▲0.0337.45 ▼0.0534.31 ▼1.55
Add New Post /wp-admin/post-new.php1,626 ▲9822.68 ▼0.34658.65 ▼35.96133.29 ▲79.12
Media Library /wp-admin/upload.php1,407 ▲74.20 ▲0.03106.55 ▼5.9861.05 ▲16.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vergify-crm/vergify.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in vergify-crm/assets to your readme.txt
The official readme.txt is a good inspiration

vergify-crm/vergify.php 85% from 13 tests

The entry point to "Vergify" version 1.6.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vergify-crm.php" instead of "vergify.php")
  • Description: The description should be shorter than 140 characters (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,015 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112227732
CSS127815283

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions14
▷ Named functions14100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/vergifyicon.png0.67KB0.48KB▼ 28.11%
images/exit.png0.23KB0.23KB0.00%
images/logo.png4.06KB2.40KB▼ 41.02%