89% tcbd-popover

Code Review | TCBD Popover

WordPress plugin TCBD Popover scored89%from 54 tests.

About plugin

  • Plugin page: tcbd-popover
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Jul 28, 2015
  • Latest release: Aug 6, 2017
  • Number of updates: 10
  • Update frequency: every 73.9 days
  • Top authors: tcoder (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,218 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
The plugin installed gracefully, with no errors

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

Server-side resources used by TCBD Popover
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.30 ▲0.43
Dashboard /wp-admin3.31 ▼0.0347.21 ▼12.08
Posts /wp-admin/edit.php3.36 ▲0.0142.76 ▼4.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.72 ▼19.35
Media Library /wp-admin/upload.php3.23 ▲0.0032.01 ▼0.92

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for TCBD Popover
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.92 ▼0.519.65 ▲7.9445.96 ▲1.86
Dashboard /wp-admin2,209 ▲214.87 ▼0.01111.12 ▲7.0641.26 ▼1.46
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0233.77 ▼8.1933.16 ▼4.76
Add New Post /wp-admin/post-new.php1,533 ▲1923.26 ▲5.76631.99 ▼40.8768.42 ▲10.35
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.03103.21 ▼4.7844.18 ▼3.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (29 tag instead of maximum 10)
  • Screenshots: Please describe screenshot #3 in tcbd-popover/assets to your readme.txt
Please take inspiration from this readme.txt

tcbd-popover/plugin-hook.php 92% from 13 tests

The main file in "TCBD Popover" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tcbd-popover.php" instead of "plugin-hook.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
No dangerous file extensions were detected956 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript314837631
CSS120255
PHP1193470

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/icon.png3.09KB3.23KB0.00%