78% nelio-popups

Code Review | Nelio Popups

WordPress plugin Nelio Popups scored78%from 54 tests.

About plugin

  • Plugin page: nelio-popups
  • Plugin version: 1.0.27
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Dec 31, 2021
  • Latest release: Jul 24, 2023
  • Number of updates: 41
  • Update frequency: every 14.0 days
  • Top authors: davilera (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /4,702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.87ms] Passed 4 tests

Server-side resources used by Nelio Popups
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1346.55 ▲1.48
Dashboard /wp-admin3.40 ▲0.0949.63 ▼5.09
Posts /wp-admin/edit.php3.45 ▲0.0952.30 ▲0.96
Add New Post /wp-admin/post-new.php6.06 ▲0.18113.25 ▲15.43
Media Library /wp-admin/upload.php3.31 ▲0.0940.08 ▼4.82
Add New /wp-admin/post-new.php?post_type=nelio_popup6.0684.30
All Popups /wp-admin/edit.php?post_type=nelio_popup3.3740.14

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
nelio_popups_version
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Nelio Popups
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16415.19 ▲0.6316.90 ▲14.9042.07 ▼4.47
Dashboard /wp-admin2,258 ▲705.85 ▲0.7199.40 ▼18.4440.46 ▼6.38
Posts /wp-admin/edit.php2,144 ▲552.03 ▲0.0740.30 ▲1.3733.23 ▼4.35
Add New Post /wp-admin/post-new.php1,571 ▲4923.52 ▲0.38601.35 ▼81.1347.68 ▼24.52
Media Library /wp-admin/upload.php1,440 ▲494.22 ▲0.04102.82 ▲2.9345.47 ▲1.67
Add New /wp-admin/post-new.php?post_type=nelio_popup6,77021.82872.7239.05
All Popups /wp-admin/edit.php?post_type=nelio_popup1,1946.2560.6340.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • nelio_popups_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/nelio-popups/includes/frontend/template.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?post_type=nelio_popup
    • > Console-api (warning) in unknown
    /wp-includes/js/dist/block-editor.min.js?ver=0cd49e3f951fc97cabb7 25:219944 "nelio-popups-block-customizations-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe." link#nelio-popups-block-customizations-css

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

nelio-popups/nelio-popups.php Passed 13 tests

This is the main PHP file of "Nelio Popups" version 1.0.27, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
A plugin to create beautiful popups.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,053 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP221731311,025
JavaScript601014
SVG10011
CSS2003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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
Namespaces9
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%
Functions82
▷ Named functions6275.61%
▷ Anonymous functions2024.39%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin