10% shardul-pandey-talks

Code Review | Shardul Pandey Talks

WordPress plugin Shardul Pandey Talks scored10%from 54 tests.

About plugin

  • Plugin page: shardul-pandey-talks
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: Aug 19, 2013
  • Number of updates: 15
  • Update frequency: every 6.3 days
  • Top authors: shardulpandey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /663 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/shardul-pandey-talks/shardulpandeytalks.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; ShardulPandeyTalks has a deprecated constructor

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

A check of server-side resources used by Shardul Pandey Talks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.00 ▼1.06
Dashboard /wp-admin3.75 ▲0.4451.34 ▲1.74
Posts /wp-admin/edit.php3.37 ▲0.0146.83 ▼3.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.72 ▼13.74
Media Library /wp-admin/upload.php3.24 ▲0.0136.44 ▼0.72

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_shardulpandeytalks
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Shardul Pandey Talks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13313.28 ▼1.094.46 ▲2.3741.05 ▲0.23
Dashboard /wp-admin2,285 ▲1005.85 ▼0.03101.20 ▼4.7941.88 ▼3.43
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0335.97 ▼6.4832.38 ▼5.37
Add New Post /wp-admin/post-new.php1,535 ▲123.50 ▲0.28656.43 ▲29.2861.53 ▲9.95
Media Library /wp-admin/upload.php1,382 ▼04.24 ▼0.08101.06 ▼28.0844.14 ▼7.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_shardulpandeytalks
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shardul-pandey-talks/feed.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shardul-pandey-talks/shardulpandeytalks.php:18

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: wordpress, dashboard, interviews, widgets, sangkrit...

shardul-pandey-talks/shardulpandeytalks.php 92% from 13 tests

This is the main PHP file of "Shardul Pandey Talks" version 2.5, 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shardul-pandey-talks.php" instead of "shardulpandeytalks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected55 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2152055

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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