10% cellarweb-multisite-site-notes-and-site-expire

Code Review | CellarWeb Multisite Site Notes and Site Expire

WordPress plugin CellarWeb Multisite Site Notes and Site Expire scored10%from 54 tests.

About plugin

  • Plugin page: cellarweb-multisi...
  • Plugin version: 1.00
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Feb 11, 2023
  • Latest release: Apr 6, 2023
  • Number of updates: 3
  • Update frequency: every 18.0 days
  • Top authors: rhellewell@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /242 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Error in wp-content/plugins/cellarweb-multisite-site-notes-and-site-expire/cellarweb-multisite-site-notes-and-site-expire.php+53
    Uncaught Error: Call to undefined function CWMN_deregister() in wp-content/plugins/cellarweb-multisite-site-notes-and-site-expire/cellarweb-multisite-site-notes-and-site-expire.php:53
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.61ms] Passed 4 tests

An overview of server-side resources used by CellarWeb Multisite Site Notes and Site Expire
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.50 ▼6.83
Dashboard /wp-admin3.31 ▲0.0046.50 ▼6.07
Posts /wp-admin/edit.php3.36 ▲0.0047.80 ▲2.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.85 ▼13.26
Media Library /wp-admin/upload.php3.23 ▲0.0035.37 ▼0.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by CellarWeb Multisite Site Notes and Site Expire
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.121.68 ▼0.1541.51 ▼2.55
Dashboard /wp-admin2,206 ▲185.83 ▼0.0695.50 ▼5.7940.54 ▼5.31
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0135.57 ▼3.7731.58 ▼3.28
Add New Post /wp-admin/post-new.php1,514 ▼3117.79 ▼0.55703.88 ▲64.9149.22 ▼2.45
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.0595.27 ▼5.2341.69 ▼4.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: You can take inspiration from this readme.txt

cellarweb-multisite-site-notes-and-site-expire/cellarweb-multisite-site-notes-and-site-expire.php 77% from 13 tests

The entry point to "CellarWeb Multisite Site Notes and Site Expire" version 1.00 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "5.2")
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

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
No dangerous file extensions were detected459 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP166134365
CSS15388
XML1006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 2.99MB with 2.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png574.72KB34.32KB▼ 94.03%
assets/icons8-check-mark-48.png1.09KB0.99KB▼ 8.63%
assets/cellarweb-logo-2022.png954.49KB191.67KB▼ 79.92%
assets/banner-772x250.png689.31KB84.04KB▼ 87.81%
assets/icon-128x128.png222.79KB11.33KB▼ 94.91%