93% text-popover

Code Review | Text Popover

WordPress plugin Text Popover scored 93% from 54 tests.

About plugin

  • Plugin page: text-popover
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Sep 10, 2021
  • Latest release: Sep 10, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: chinteshprajapati (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 67 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼144.04ms] Passed 4 tests

An overview of server-side resources used by Text Popover
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.65 ▲16.13
Dashboard /wp-admin3.09 ▲0.0346.96 ▼1.44
Posts /wp-admin/edit.php3.17 ▲0.0647.49 ▼1.25
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.33 ▼575.05
Media Library /wp-admin/upload.php3.03 ▲0.0336.90 ▲1.59

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Text Popover
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,837 ▲25517.82 ▲2.1816.72 ▲6.9947.37 ▼4.04
Dashboard /wp-admin2,991 ▲576.96 ▲0.78161.79 ▲1.92111.37 ▲0.28
Posts /wp-admin/edit.php2,988 ▲2493.99 ▲1.2877.98 ▲9.7499.11 ▲13.19
Add New Post /wp-admin/post-new.php1,696 ▲1318.80 ▲0.27393.82 ▼19.94121.68 ▲6.38
Media Library /wp-admin/upload.php2,000 ▲1935.74 ▲0.74141.93 ▼40.00117.11 ▲2.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-popover/popover-tool.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% 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
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #4 (Text popover icon after popover added.), #5 (Font end.)
  • Screenshots: Add descriptions for screenshots #0, #0 in text-popover/assets to your readme.txt
You can look at the official readme.txt

text-popover/popover-tool.php 85% from 13 tests

"Text Popover" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 153 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("text-popover.php" instead of "popover-tool.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
No dangerous file extensions were detected40 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP243021
JSON10015
CSS3102
JavaScript2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin