90% popover-tool

Code Review | Popover Tool

WordPress plugin Popover Tool scored90%from 54 tests.

About plugin

  • Plugin page: popover-tool
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 10, 2019
  • Latest release: Sep 11, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: chinteshprajapati (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /749 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: ▼1.12ms] Passed 4 tests

Server-side resources used by Popover Tool
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.16 ▼2.03
Dashboard /wp-admin3.33 ▲0.0251.01 ▲2.50
Posts /wp-admin/edit.php3.39 ▲0.0351.50 ▲1.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0087.50 ▼5.88
Media Library /wp-admin/upload.php3.26 ▲0.0242.29 ▲2.08

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

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

Browser metrics Passed 4 tests

Popover Tool: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,242 ▲48126.35 ▲11.9749.52 ▲47.2742.40 ▼4.43
Dashboard /wp-admin2,283 ▲11210.68 ▲5.08117.68 ▲28.2541.52 ▲0.47
Posts /wp-admin/edit.php2,181 ▲7810.36 ▲8.3273.40 ▲36.4134.90 ▼5.27
Add New Post /wp-admin/post-new.php1,681 ▲15022.92 ▼0.48528.56 ▼145.2030.34 ▼35.08
Media Library /wp-admin/upload.php1,506 ▲10911.01 ▲6.82138.22 ▲39.4645.16 ▼4.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: popover, text popover, popover tool, popover text

popover-tool/popover-tool.php Passed 13 tests

The entry point to "Popover Tool" version 1.0.0 is a PHP file that has certain tags in its header comment area
35 characters long description:
It can add popover content on text.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin159 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4934127
PHP141919
CSS10013

PHP code Passed 2 tests

A short review 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.12
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin