89% sugar-calendar-wp-all-import

Code Review | Sugar Calendar - WP All Import Add-on

WordPress plugin Sugar Calendar - WP All Import Add-on scored89%from 54 tests.

About plugin

  • Plugin page: sugar-calendar-wp...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Apr 16, 2020
  • Latest release: Apr 8, 2021
  • Number of updates: 7
  • Update frequency: every 51.0 days
  • Top authors: mordauk (71.43%)johnjamesjacoby (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,447 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.32MB] [CPU: ▼1.98ms] Passed 4 tests

Server-side resources used by Sugar Calendar - WP All Import Add-on
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3540.16 ▼4.34
Dashboard /wp-admin3.66 ▲0.3647.20 ▼1.43
Posts /wp-admin/edit.php3.71 ▲0.3648.58 ▲4.69
Add New Post /wp-admin/post-new.php6.18 ▲0.3093.34 ▼5.98
Media Library /wp-admin/upload.php3.52 ▲0.2936.68 ▲3.85

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sugar Calendar - WP All Import Add-on
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.25 ▼1.041.66 ▼0.3941.58 ▼3.56
Dashboard /wp-admin2,226 ▲384.85 ▼0.0596.18 ▼20.0039.06 ▼8.11
Posts /wp-admin/edit.php2,119 ▲302.01 ▼0.0262.53 ▲20.7844.88 ▲10.90
Add New Post /wp-admin/post-new.php1,556 ▲2323.24 ▲0.15652.96 ▲7.6356.36 ▲0.02
Media Library /wp-admin/upload.php1,414 ▲264.21 ▲0.0199.02 ▲3.6141.07 ▼0.93

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
There were no plugin tags found

sugar-calendar-wp-all-import/sc-event-wp-all-import-addon.php 77% from 13 tests

The principal PHP file in "Sugar Calendar - WP All Import Add-on" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("sugar-calendar-wp-all-import.php" instead of "sc-event-wp-all-import-addon.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,717 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP83395441,476
CSS1451225
JavaScript18916

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity43.00
▷ Minimum class complexity5.00
▷ Maximum class complexity198.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods91
▷ Static methods77.69%
▷ Public methods6773.63%
▷ Protected methods00.00%
▷ Private methods2426.37%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected