84% siteglue

Code Review | SiteGlue

WordPress plugin SiteGlue scored84%from 54 tests.

About plugin

  • Plugin page: siteglue
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.4.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2016
  • Latest release: Mar 11, 2016
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: siteglue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,164 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.03MB] [CPU: ▼8.00ms] Passed 4 tests

A check of server-side resources used by SiteGlue
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0432.74 ▼17.09
Dashboard /wp-admin3.36 ▲0.0545.08 ▼6.15
Posts /wp-admin/edit.php3.41 ▲0.0546.00 ▼2.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0794.30 ▼3.55
Media Library /wp-admin/upload.php3.28 ▲0.0532.48 ▼5.21
SiteGlue Settings /wp-admin/options-general.php?page=siteglue/siteglue-plugin.php3.2532.07

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by SiteGlue
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11713.33 ▼0.952.02 ▼0.3143.59 ▼12.10
Dashboard /wp-admin2,226 ▲385.22 ▼0.63111.86 ▼4.3640.91 ▼2.27
Posts /wp-admin/edit.php2,117 ▲282.31 ▲0.3241.30 ▲6.7436.42 ▼0.61
Add New Post /wp-admin/post-new.php1,550 ▲3118.73 ▼4.34592.93 ▼96.0133.55 ▼15.60
Media Library /wp-admin/upload.php1,414 ▲234.48 ▲0.28104.30 ▲2.0342.59 ▲0.58
SiteGlue Settings /wp-admin/options-general.php?page=siteglue/siteglue-plugin.php1,0952.4150.9534.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 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/siteglue/siteglue-plugin.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
Please take inspiration from this readme.txt

siteglue/siteglue-plugin.php 92% from 13 tests

The principal PHP file in "SiteGlue" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("siteglue.php" instead of "siteglue-plugin.php")

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
No dangerous file extensions were detected147 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP19282142
JavaScript1215

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png3.46KB3.38KB▼ 2.28%