84% onecrm

Code Review | OneCrm Plugin

WordPress plugin OneCrm Plugin scored84%from 54 tests.

About plugin

  • Plugin page: onecrm
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.3
  • WordPress version: 6.3.1
  • First release: Apr 3, 2019
  • Latest release: Oct 25, 2019
  • Number of updates: 11
  • Update frequency: every 18.7 days
  • Top authors: lonercoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,099 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.73ms] Passed 4 tests

This is a short check of server-side resources used by OneCrm Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.56 ▲1.03
Dashboard /wp-admin3.38 ▲0.0751.00 ▼1.76
Posts /wp-admin/edit.php3.49 ▲0.1352.89 ▲0.86
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.33 ▼11.04
Media Library /wp-admin/upload.php3.30 ▲0.0741.86 ▲3.56

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
oneCrm_Token
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
oneCrm_CustID
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for OneCrm Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2914.33 ▼0.291.60 ▼0.1035.13 ▼4.13
Dashboard /wp-admin2,191 ▲115.62 ▼0.0486.80 ▼5.8484.95 ▲40.48
Posts /wp-admin/edit.php2,114 ▲111.98 ▼0.0138.56 ▲2.1139.44 ▲3.06
Add New Post /wp-admin/post-new.php1,551 ▲2523.01 ▼0.16655.29 ▲14.28144.80 ▲93.17
Media Library /wp-admin/upload.php1,408 ▲114.19 ▲0.00104.30 ▲4.4375.99 ▲32.38

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
  • The uninstall procedure has failed, leaving 8 options in the database
    • oneCrm_CustID
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • oneCrm_Token
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/onecrm/admin/setting_view.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: worpress, plugin, connectonecrm, onecrm

onecrm/onecrm.php Passed 13 tests

The entry point to "OneCrm Plugin" version 1.4 is a PHP file that has certain tags in its header comment area
79 characters long description:
این افزونه برای ارتباط OneCrm با وب سایت شماست.

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
Good job! No executable or dangerous file extensions detected481 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP56027480
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions31
▷ Named functions2993.55%
▷ Anonymous functions26.45%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/oclogo.png16.27KB1.38KB▼ 91.49%