84% swami-vivekananda-quotes

Code Review | Swami Vivekananda Quotes

WordPress plugin Swami Vivekananda Quotes scored84%from 54 tests.

About plugin

  • Plugin page: swami-vivekananda...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Dec 21, 2013
  • Latest release: Dec 21, 2013
  • Number of updates: 4
  • Update frequency: every 127.0 days
  • Top authors: jayantisolanki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /602 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.33ms] Passed 4 tests

This is a short check of server-side resources used by Swami Vivekananda Quotes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.10 ▼2.13
Dashboard /wp-admin3.38 ▲0.0440.75 ▼23.10
Posts /wp-admin/edit.php3.44 ▲0.0841.69 ▼0.68
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.09 ▼7.42
Media Library /wp-admin/upload.php3.37 ▲0.1434.48 ▲1.54

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Swami Vivekananda Quotes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.34 ▼0.011.70 ▼0.3744.38 ▲1.46
Dashboard /wp-admin2,201 ▲245.51 ▼0.2582.70 ▼16.3744.85 ▲2.62
Posts /wp-admin/edit.php2,106 ▲61.99 ▼0.0332.28 ▼2.5737.41 ▲5.10
Add New Post /wp-admin/post-new.php1,532 ▲623.48 ▲0.46661.52 ▼68.4857.65 ▼10.36
Media Library /wp-admin/upload.php1,406 ▲94.25 ▼0.0095.73 ▼24.2444.15 ▼3.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/swami-vivekananda-quotes/sv-quotes.php:17

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

swami-vivekananda-quotes/sv-quotes.php 92% from 13 tests

This is the main PHP file of "Swami Vivekananda Quotes" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("swami-vivekananda-quotes.php" instead of "sv-quotes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected384 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1212384

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
No PNG images were found in this plugin