84% shimi-ads-popup

Code Review | shimi ads popup

WordPress plugin shimi ads popup scored84%from 54 tests.

About plugin

  • Plugin page: shimi-ads-popup
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Sep 15, 2016
  • Latest release: Sep 15, 2016
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: webvn20 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by shimi ads popup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.87 ▼0.44
Dashboard /wp-admin3.31 ▲0.0152.12 ▲1.27
Posts /wp-admin/edit.php3.36 ▲0.0150.06 ▲2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.44 ▼15.19
Media Library /wp-admin/upload.php3.23 ▲0.0136.96 ▲1.56

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
shi-pop-btn-close
shi-pop-active
theysaidso_admin_options
widget_theysaidso_widget
shi-pop-img
shi-pop-link
widget_recent-comments
...

Browser metrics Passed 4 tests

shimi ads popup: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲2214.72 ▲0.231.59 ▼0.1142.39 ▲1.71
Dashboard /wp-admin2,207 ▲275.63 ▼0.0484.63 ▼13.7038.87 ▼2.30
Posts /wp-admin/edit.php2,112 ▲121.95 ▼0.0237.49 ▼1.5731.69 ▼5.79
Add New Post /wp-admin/post-new.php1,538 ▲121.12 ▲2.73614.48 ▼13.7141.67 ▼28.38
Media Library /wp-admin/upload.php1,409 ▲154.09 ▼0.08101.05 ▼61.4246.90 ▼5.39

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: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/shimi-ads-popup/shi-popup-plugins.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Stable tag: No string
The official readme.txt is a good inspiration

shimi-ads-popup/shi-popup-plugins.php 92% from 13 tests

The principal PHP file in "shimi ads popup" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shimi-ads-popup.php" instead of "shi-popup-plugins.php")

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
Success! There were no dangerous files found in this plugin301 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11017183
JavaScript1203384
CSS11034

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/ico_close.png3.76KB2.49KB▼ 33.74%