83% apricot-rocket-crm

Code Review | Apricotrocket CRM Plugin

WordPress plugin Apricotrocket CRM Plugin scored83%from 54 tests.

About plugin

  • Plugin page: apricot-rocket-crm
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: Dec 19, 2016
  • Number of updates: 13
  • Update frequency: every 28.2 days
  • Top authors: apricotrocket (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,087 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.06MB] [CPU: ▼11.29ms] Passed 4 tests

This is a short check of server-side resources used by Apricotrocket CRM Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.70 ▲2.70
Dashboard /wp-admin3.39 ▲0.0446.20 ▼12.95
Posts /wp-admin/edit.php3.42 ▲0.0643.34 ▼5.06
Add New Post /wp-admin/post-new.php6.06 ▲0.1775.34 ▼27.28
Media Library /wp-admin/upload.php3.33 ▲0.0933.19 ▲0.14

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Apricotrocket CRM Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.54 ▼0.841.74 ▲0.0743.35 ▲1.86
Dashboard /wp-admin2,222 ▲344.85 ▼0.07105.63 ▲4.4943.49 ▲2.99
Posts /wp-admin/edit.php2,105 ▲192.00 ▼0.0434.75 ▼2.3034.82 ▲3.57
Add New Post /wp-admin/post-new.php1,527 ▼1517.59 ▼0.69675.89 ▲42.3645.69 ▲1.24
Media Library /wp-admin/upload.php1,407 ▲254.18 ▼0.0395.80 ▼4.2942.15 ▼0.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • 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
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apricot-rocket-crm/apricotrocket-plugin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === apricot-rocket-crm === )
The official readme.txt is a good inspiration

apricot-rocket-crm/apricotrocket-plugin.php 85% from 13 tests

The primary PHP file in "Apricotrocket CRM Plugin" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("apricot-rocket-crm.php" instead of "apricotrocket-plugin.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1401075

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin