78% amitabh-bachchan-songs

Code Review | Amitabh Bachchan Songs

WordPress plugin Amitabh Bachchan Songs scored78%from 54 tests.

About plugin

  • Plugin page: amitabh-bachchan-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Aug 11, 2020
  • Latest release: Aug 11, 2020
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: vyasrajesh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.62ms] Passed 4 tests

This is a short check of server-side resources used by Amitabh Bachchan Songs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.84 ▼4.65
Dashboard /wp-admin3.31 ▲0.0046.88 ▼3.87
Posts /wp-admin/edit.php3.36 ▲0.0048.07 ▼1.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.89 ▼20.36
Media Library /wp-admin/upload.php3.23 ▲0.0036.08 ▲2.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Amitabh Bachchan Songs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.23 ▼1.531.78 ▼0.3241.44 ▼6.41
Dashboard /wp-admin2,212 ▲304.84 ▼0.03107.78 ▲3.7141.04 ▼3.53
Posts /wp-admin/edit.php2,094 ▲22.04 ▲0.0338.33 ▼2.6135.88 ▲1.55
Add New Post /wp-admin/post-new.php1,590 ▲5022.52 ▼0.58675.69 ▲66.8351.60 ▼1.45
Media Library /wp-admin/upload.php1,394 ▲94.24 ▲0.0593.83 ▼3.6140.93 ▼0.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/amitabh-bachchan-songs/index.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amitabh-bachchan-songs/amitabh-bachchan-songs.php:66

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: amitabh bachchan songs, songs, bachchan songs, amitabh, amitabh songs...

amitabh-bachchan-songs/amitabh-bachchan-songs.php 92% from 13 tests

The primary PHP file in "Amitabh Bachchan Songs" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 365 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected46 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP271646

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin