90% sitebam

Code Review | SiteBam

WordPress plugin SiteBam scored 90% from 54 tests.

About plugin

  • Plugin page: sitebam
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 5.8.1
  • First release: Apr 15, 2020
  • Latest release: Apr 15, 2020
  • Number of updates: 11
  • Update frequency: every 26.0 days
  • Top authors: romancartsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 220 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼137.54ms] Passed 4 tests

Server-side resources used by SiteBam
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.35 ▲13.80
Dashboard /wp-admin3.07 ▲0.0151.17 ▲7.97
Posts /wp-admin/edit.php3.12 ▲0.0146.13 ▲2.56
Add New Post /wp-admin/post-new.php5.43 ▲0.0092.10 ▼550.99
Media Library /wp-admin/upload.php3.01 ▲0.0030.82 ▼9.70
SiteBam /wp-admin/options-general.php?page=sitebam_settings3.0329.54

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
sitebam_version

Browser metrics Passed 4 tests

SiteBam: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲12815.88 ▼0.038.37 ▲0.3550.55 ▼2.25
Dashboard /wp-admin2,999 ▲655.94 ▼0.05132.87 ▼11.42112.48 ▼10.13
Posts /wp-admin/edit.php2,746 ▲72.69 ▲0.0061.37 ▼3.2498.26 ▲6.87
Add New Post /wp-admin/post-new.php1,688 ▲5118.73 ▼0.36367.04 ▼15.59104.69 ▼4.21
Media Library /wp-admin/upload.php1,817 ▼55.07 ▲0.05135.74 ▼22.23121.19 ▼2.16
SiteBam /wp-admin/options-general.php?page=sitebam_settings1,1032.0950.7362.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • sitebam_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
5 plugin tags: seo, heatmaps, sitebam, recordings, chat

sitebam/sitebam.php Passed 13 tests

The primary PHP file in "SiteBam" version 1.0.0 is used by WordPress to initiate all plugin functionality
27 characters long description:
Get more from your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin165 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35248151
CSS12014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods423.53%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/static/sitebam_logo.png7.70KB4.09KB▼ 46.88%
admin/static/tagline.png1.90KB1.26KB▼ 33.32%