90% glindr

Code Review | Glindr

WordPress plugin Glindr scored90%from 54 tests.

About plugin

  • Plugin page: glindr
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.5.2
  • WordPress version: 6.3.1
  • First release: May 14, 2016
  • Latest release: May 14, 2016
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: glindr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /846 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.04MB] [CPU: ▼15.21ms] Passed 4 tests

An overview of server-side resources used by Glindr
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.02 ▲1.94
Dashboard /wp-admin3.45 ▲0.1144.79 ▼14.19
Posts /wp-admin/edit.php3.56 ▲0.2143.19 ▼1.62
Add New Post /wp-admin/post-new.php5.34 ▼0.5461.23 ▼46.69
Media Library /wp-admin/upload.php3.37 ▲0.1535.49 ▲1.66
Glindr /wp-admin/options-general.php?page=gc_settings3.3631.12

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Glindr
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲2214.23 ▲0.031.64 ▼0.2345.07 ▲5.07
Dashboard /wp-admin2,196 ▲165.56 ▼0.0384.77 ▲0.1439.04 ▼5.00
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0035.54 ▼0.0829.70 ▼4.13
Add New Post /wp-admin/post-new.php1,536 ▲823.11 ▲0.14638.17 ▼42.1059.68 ▲1.53
Media Library /wp-admin/upload.php1,407 ▲104.23 ▲0.05102.60 ▼1.7343.05 ▼2.52
Glindr /wp-admin/options-general.php?page=gc_settings7822.0224.5823.79

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: syndication, posts

glindr/glindr.php Passed 13 tests

The main PHP file in "Glindr" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Quickly and easily syndicate your posts to Glindr.

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
Everything looks great! No dangerous files found in this plugin705 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP15230183653
JavaScript210149
CSS1013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity9.83
▷ Minimum class complexity4.00
▷ Maximum class complexity15.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods35
▷ Static methods35100.00%
▷ Public methods2365.71%
▷ Protected methods00.00%
▷ Private methods1234.29%
Functions17
▷ Named functions1482.35%
▷ Anonymous functions317.65%
Constants12
▷ Global constants12100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon-128x128.png2.20KB0.77KB▼ 65.13%