84% sadhguru-quotes

Code Review | Sadhguru Quotes

WordPress plugin Sadhguru Quotes scored 84% from 54 tests.

About plugin

  • Plugin page: sadhguru-quotes
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2022
  • Latest release: Dec 10, 2022
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: carlosmvalle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 189 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.76ms] Passed 4 tests

Analyzing server-side resources used by Sadhguru Quotes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.69 ▼5.81
Dashboard /wp-admin3.34 ▲0.0445.96 ▼4.97
Posts /wp-admin/edit.php3.37 ▲0.0246.44 ▼0.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.34 ▼0.21
Media Library /wp-admin/upload.php3.25 ▲0.0236.48 ▲2.16

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Sadhguru Quotes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲15313.28 ▼1.091.68 ▼0.1241.12 ▼3.55
Dashboard /wp-admin2,266 ▲815.87 ▲0.9999.27 ▼4.5740.74 ▼2.25
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0442.32 ▲6.2835.54 ▲5.24
Add New Post /wp-admin/post-new.php1,514 ▼1917.69 ▼5.38679.44 ▲8.5254.42 ▼15.67
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0295.03 ▼8.9741.71 ▼8.34

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sadhguru-quotes/sadhguru_quotes.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: daily quotes, widget, dashboard, wisdom, quotes...

sadhguru-quotes/sadhguru_quotes.php 92% from 13 tests

The entry point to "Sadhguru Quotes" version 2.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sadhguru-quotes.php" instead of "sadhguru_quotes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin158 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP115989
JavaScript18957
CSS12012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
No PNG files were detected