90% alligator-popup

Code Review | Alligator Popup

WordPress plugin Alligator Popup scored90%from 54 tests.

About plugin

  • Plugin page: alligator-popup
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2013
  • Latest release: Feb 20, 2023
  • Number of updates: 83
  • Update frequency: every 41.2 days
  • Top authors: numeeja (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

3,000+ active /67,092 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
Install script ran successfully

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

This is a short check of server-side resources used by Alligator Popup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.87 ▼1.17
Dashboard /wp-admin3.32 ▲0.0153.30 ▲5.70
Posts /wp-admin/edit.php3.37 ▲0.0148.76 ▲3.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.21 ▼19.10
Media Library /wp-admin/upload.php3.24 ▲0.0137.59 ▲3.62

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Alligator Popup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.37 ▼1.191.72 ▼0.3437.23 ▼7.30
Dashboard /wp-admin2,206 ▲154.86 ▼0.03114.03 ▲1.5042.03 ▼4.91
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0039.52 ▲0.8535.28 ▼0.20
Add New Post /wp-admin/post-new.php1,528 ▼518.40 ▼4.94616.09 ▼68.6350.99 ▲0.37
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0294.86 ▼3.0739.67 ▼5.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: popups, simple, shortcode, popup message, jquery...

alligator-popup/alligator-popup.php Passed 13 tests

This is the main PHP file of "Alligator Popup" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Shortcode to open a link inside a popup browser window

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
Good job! No executable or dangerous file extensions detected60 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1253643
JavaScript17017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin