89% extended-crm-for-users-insights

Code Review | Extended CRM for Users Insights

WordPress plugin Extended CRM for Users Insights scored89%from 54 tests.

About plugin

  • Plugin page: extended-crm-for-...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 6.3.1
  • First release: Feb 1, 2016
  • Latest release: Jan 31, 2022
  • Number of updates: 24
  • Update frequency: every 91.3 days
  • Top authors: denizz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /9,213 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.89ms] Passed 4 tests

Analyzing server-side resources used by Extended CRM for Users Insights
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.03 ▲1.23
Dashboard /wp-admin3.33 ▲0.0244.31 ▼8.46
Posts /wp-admin/edit.php3.38 ▲0.0243.48 ▼2.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.61 ▼28.77
Media Library /wp-admin/upload.php3.25 ▲0.0237.31 ▲0.14

Server storage [IO: ▲0.86MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Extended CRM for Users Insights
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.71 ▲0.361.86 ▲0.0940.53 ▼1.75
Dashboard /wp-admin2,204 ▲245.57 ▼0.1088.64 ▼2.1039.89 ▲0.05
Posts /wp-admin/edit.php2,110 ▲311.97 ▲0.0039.97 ▲0.6236.33 ▼1.95
Add New Post /wp-admin/post-new.php1,537 ▲923.37 ▲0.32614.70 ▼91.9274.84 ▲10.71
Media Library /wp-admin/upload.php1,412 ▲124.16 ▼0.0199.74 ▲0.5343.14 ▲0.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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 93% 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
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

extended-crm-for-users-insights/extended-crm-users-insights.php 92% from 13 tests

The main file in "Extended CRM for Users Insights" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("extended-crm-for-users-insights.php" instead of "extended-crm-users-insights.php")

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
No dangerous file extensions were detected1,267 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG100655
PHP512484424
JavaScript32910128
CSS37352
HTML2008

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.60
▷ Minimum class complexity4.00
▷ Maximum class complexity18.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods46
▷ Static methods00.00%
▷ Public methods3576.09%
▷ Protected methods1123.91%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin