84% simple-calltoaction-popup

Code Review | Simple CallToAction PopUp

WordPress plugin Simple CallToAction PopUp scored84%from 54 tests.

About plugin

  • Plugin page: simple-calltoacti...
  • Plugin version: 0.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 26, 2018
  • Latest release: Jul 18, 2018
  • Number of updates: 11
  • Update frequency: every 2.0 days
  • Top authors: nikitadudarev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /653 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.13MB] [CPU: ▼18.59ms] Passed 4 tests

A check of server-side resources used by Simple CallToAction PopUp
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.45 ▲0.38
Dashboard /wp-admin3.16 ▼0.1430.78 ▼21.46
Posts /wp-admin/edit.php3.30 ▼0.0633.83 ▼17.65
Add New Post /wp-admin/post-new.php5.55 ▼0.3471.99 ▼27.12
Media Library /wp-admin/upload.php3.25 ▲0.0228.50 ▼8.11
All Popup /wp-admin/edit.php?post_type=simple_action_popup3.2831.37
Add New /wp-admin/post-new.php?post_type=simple_action_popup3.3844.63
General /wp-admin/admin.php?page=simple-calltoaction-popup3.3033.76

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Simple CallToAction PopUp: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.43 ▼0.9410.74 ▲8.3341.85 ▼7.44
Dashboard /wp-admin2,225 ▲485.58 ▲0.0581.34 ▼18.6543.97 ▲2.63
Posts /wp-admin/edit.php2,127 ▲301.97 ▼0.0639.52 ▲1.0036.35 ▲1.20
Add New Post /wp-admin/post-new.php1,548 ▲1323.12 ▲4.71630.84 ▼19.6858.73 ▼6.22
Media Library /wp-admin/upload.php1,430 ▲304.24 ▲0.0599.85 ▼7.5941.09 ▼0.94
All Popup /wp-admin/edit.php?post_type=simple_action_popup1,0911.9630.5831.97
Add New /wp-admin/post-new.php?post_type=simple_action_popup1,5443.3571.2637.76
General /wp-admin/admin.php?page=simple-calltoaction-popup8571.9327.1327.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=simple_action_popup
    • > Notice in wp-content/plugins/simple-calltoaction-popup/includes/admin/admin-settings.class.php+227
    Undefined index: page

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Donate link: Invalid url: "#"
The official readme.txt might help

simple-calltoaction-popup/simple-call-to-action-popup.php 92% from 13 tests

This is the main PHP file of "Simple CallToAction PopUp" version 0.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-calltoaction-popup.php" instead of "simple-call-to-action-popup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin778 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1110732456
CSS2380228
JavaScript211094

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity9.25
▷ Minimum class complexity5.00
▷ Maximum class complexity20.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods2395.83%
▷ Protected methods14.17%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin