89% popup-seo-optimized

Code Review | Pop Up

WordPress plugin Pop Up scored89%from 54 tests.

About plugin

  • Plugin page: popup-seo-optimized
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7
  • WordPress version: 6.3.1
  • First release: Mar 5, 2017
  • Latest release: Mar 5, 2017
  • Number of updates: 31
  • Update frequency: every 6.1 days
  • Top authors: coffeestudios (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /2,950 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.72ms] Passed 4 tests

An overview of server-side resources used by Pop Up
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0744.07 ▲2.34
Dashboard /wp-admin3.37 ▲0.0749.35 ▼3.86
Posts /wp-admin/edit.php3.49 ▲0.1348.49 ▼5.81
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.35 ▼23.56
Media Library /wp-admin/upload.php3.29 ▲0.0740.74 ▲2.48

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

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

Browser metrics Passed 4 tests

Pop Up: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲16713.62 ▼0.549.51 ▲7.4447.10 ▲0.14
Dashboard /wp-admin2,208 ▲285.56 ▼0.1082.71 ▼12.3339.72 ▼2.75
Posts /wp-admin/edit.php2,116 ▲161.99 ▼0.0242.57 ▲6.4937.12 ▲2.12
Add New Post /wp-admin/post-new.php1,539 ▲223.28 ▲4.93639.10 ▼10.7056.74 ▼7.14
Media Library /wp-admin/upload.php1,416 ▲164.19 ▼0.00100.68 ▼6.2443.21 ▼7.25

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 detected upon uninstall: 8 options
    • cspopupseoo_options
    • cspopupseoo_plugin_version
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Screenshot of pop up one), #2 (Screenshot of pop up two)
Please take inspiration from this readme.txt

popup-seo-optimized/wp-modal-popup.php 92% from 13 tests

The main file in "Pop Up" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("popup-seo-optimized.php" instead of "wp-modal-popup.php")

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
There were no executable files found in this plugin905 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP9156263586
JavaScript26545191
CSS135128

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.32
Average class complexity12.00
▷ Minimum class complexity7.00
▷ Maximum class complexity18.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/close.png14.77KB0.83KB▼ 94.41%