84% really-simple-popup

Code Review | Really Simple Popup

WordPress plugin Really Simple Popup scored84%from 54 tests.

About plugin

  • Plugin page: really-simple-popup
  • Plugin version: 1.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Dec 3, 2014
  • Number of updates: 17
  • Update frequency: every 35.9 days
  • Top authors: huntlyc (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

700+ active /18,930 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.12ms] Passed 4 tests

A check of server-side resources used by Really Simple Popup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.51 ▼0.17
Dashboard /wp-admin3.31 ▲0.0051.88 ▼0.17
Posts /wp-admin/edit.php3.36 ▲0.0049.56 ▲1.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.16 ▼17.64
Media Library /wp-admin/upload.php3.23 ▲0.0039.29 ▲2.41

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Really Simple Popup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.58 ▼0.8010.01 ▲8.3043.93 ▼2.54
Dashboard /wp-admin2,209 ▲184.85 ▼0.05113.23 ▲1.4641.76 ▲0.83
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0440.11 ▲1.9234.71 ▼3.36
Add New Post /wp-admin/post-new.php1,514 ▼1917.72 ▼5.46662.98 ▲1.9067.72 ▲3.93
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.0696.27 ▼9.6443.40 ▲2.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/really-simple-popup/really-simple-popup.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: fancybox, popup

really-simple-popup/really-simple-popup.php Passed 13 tests

Analyzing the main PHP file in "Really Simple Popup" version 1.0.11
41 characters long description:
Simple, easy to use, fancybox style popup

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
No dangerous file extensions were detected603 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2148102529
CSS215166
PHP16308

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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%
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
4 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/close-button.png1.26KB1.01KB▼ 19.52%
images/rightarrow.png50.51KB1.77KB▼ 96.50%
images/overlay-bg.png0.18KB0.09KB▼ 48.09%
images/leftarrow.png50.54KB1.75KB▼ 96.53%