83% aspexi-sweet-popups

Code Review | Aspexi Sweet Popups

WordPress plugin Aspexi Sweet Popups scored83%from 54 tests.

About plugin

  • Plugin page: aspexi-sweet-popups
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2015
  • Latest release: Mar 20, 2019
  • Number of updates: 14
  • Update frequency: every 87.1 days
  • Top authors: aspexi (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /3,721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼8.80ms] Passed 4 tests

This is a short check of server-side resources used by Aspexi Sweet Popups
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1238.11 ▼0.35
Dashboard /wp-admin3.44 ▲0.0945.83 ▼18.93
Posts /wp-admin/edit.php3.49 ▲0.1347.42 ▼3.05
Add New Post /wp-admin/post-new.php6.02 ▲0.1392.96 ▼11.12
Media Library /wp-admin/upload.php3.36 ▲0.1335.90 ▼2.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Aspexi Sweet Popups
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.42 ▼0.351.77 ▼0.1141.41 ▼0.89
Dashboard /wp-admin2,210 ▲185.85 ▲0.90107.60 ▲1.8543.48 ▼0.69
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0039.46 ▼1.4737.45 ▲1.43
Add New Post /wp-admin/post-new.php1,545 ▲1718.57 ▲0.49588.52 ▼43.6452.41 ▼10.96
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0295.73 ▼3.7441.49 ▼1.40
Aspexi Sweet Popups /wp-admin/aspexi-sweet-popups.php260.440.1113.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/aspexi-sweet-popups.php
    • > Network (severe)
    wp-admin/aspexi-sweet-popups.php - Failed to load resource: the server responded with a status of 404 (Not Found)

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:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

aspexi-sweet-popups/aspexi-sweet-popups.php 92% from 13 tests

The entry point to "Aspexi Sweet Popups" version 1.1.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,291 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS11102211,392
PHP19023631
PO File18193182
JavaScript3171786

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity64.00
▷ Minimum class complexity64.00
▷ Maximum class complexity64.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 1.56MB with 1.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/theme_none.png306.59KB3.96KB▼ 98.71%
images/warning.png21.64KB2.09KB▼ 90.34%
images/like_button_layout_standard.png52.88KB2.21KB▼ 95.82%
images/theme_twitter.png306.59KB3.22KB▼ 98.95%
images/like_button_layout_button.png52.88KB1.19KB▼ 97.74%