90% poppable

Code Review | Poppable

WordPress plugin Poppable scored 90% from 54 tests.

About plugin

  • Plugin page: poppable
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.6
  • WordPress version: 6.3.1
  • First release: Feb 1, 2021
  • Latest release: Feb 2, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: engramium (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 308 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.52ms] Passed 4 tests

Server-side resources used by Poppable
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.28 ▼2.92
Dashboard /wp-admin3.32 ▲0.0144.83 ▼2.44
Posts /wp-admin/edit.php3.37 ▲0.0148.14 ▼4.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.65 ▼12.39
Media Library /wp-admin/upload.php3.24 ▲0.0134.68 ▼1.61

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Poppable
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲23514.09 ▼0.515.38 ▲3.6244.58 ▼8.08
Dashboard /wp-admin2,238 ▲505.16 ▲0.28103.35 ▲1.2536.58 ▼8.99
Posts /wp-admin/edit.php2,126 ▲372.31 ▲0.3135.25 ▼5.8031.66 ▼2.84
Add New Post /wp-admin/post-new.php1,541 ▲2717.76 ▲0.19693.79 ▲18.6836.61 ▼13.64
Media Library /wp-admin/upload.php1,417 ▲324.42 ▲0.25102.48 ▲5.0441.68 ▼4.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
2 plugin tags: exitpopup, exitintent

poppable/poppable.php Passed 13 tests

Analyzing the main PHP file in "Poppable" version 0.2
24 characters long description:
Exit Intent PopUp Plugin

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
Everything looks great! No dangerous files found in this plugin280 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP24113244
JavaScript22324
CSS22312

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/close.png0.84KB0.85KB0.00%