84% inline-text-popup

Code Review | Inline Text Popup

WordPress plugin Inline Text Popup scored84%from 54 tests.

About plugin

  • Plugin page: inline-text-popup
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2017
  • Latest release: Jan 4, 2019
  • Number of updates: 3
  • Update frequency: every 189.4 days
  • Top authors: webplanetsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.89ms] Passed 4 tests

This is a short check of server-side resources used by Inline Text Popup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.28 ▼0.08
Dashboard /wp-admin3.39 ▲0.0446.98 ▼17.62
Posts /wp-admin/edit.php3.42 ▲0.0648.95 ▼3.12
Add New Post /wp-admin/post-new.php6.06 ▲0.1787.50 ▼2.74
Media Library /wp-admin/upload.php3.33 ▲0.0940.70 ▲5.32

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Inline Text Popup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.24 ▼0.142.53 ▲0.7044.04 ▲2.46
Dashboard /wp-admin2,195 ▲155.65 ▼0.0293.06 ▲1.5042.50 ▼2.63
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0439.76 ▼0.3234.86 ▼3.56
Add New Post /wp-admin/post-new.php1,404 ▼14618.54 ▼4.64636.48 ▼31.5448.45 ▼4.73
Media Library /wp-admin/upload.php1,397 ▼64.18 ▼0.01132.15 ▲35.2748.53 ▲2.46

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/inline-text-popup/index.php
    • > /wp-content/plugins/inline-text-popup/popup.php

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: popup, admin, post, page

inline-text-popup/index.php 92% from 13 tests

The primary PHP file in "Inline Text Popup" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("inline-text-popup.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin229 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript115080
PHP214880
CSS111169

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png24.46KB13.49KB▼ 44.85%
src/add_popup.png64.42KB26.49KB▼ 58.88%
screenshot-1.png38.80KB16.77KB▼ 56.77%
screenshot-2.png69.90KB32.00KB▼ 54.23%