90% wen-call-to-action

Code Review | WEN Call To Action

WordPress plugin WEN Call To Action scored 90% from 54 tests.

About plugin

  • Plugin page: wen-call-to-action
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0.1
  • WordPress version: 6.3.1
  • First release: May 28, 2015
  • Latest release: Aug 24, 2022
  • Number of updates: 14
  • Update frequency: every 188.9 days
  • Top authors: wenthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 8,939 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 gracefully, with no errors

Server metrics [RAM: ▲0.14MB] [CPU: ▲1.63ms] Passed 4 tests

Analyzing server-side resources used by WEN Call To Action
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1447.63 ▲2.93
Dashboard /wp-admin3.44 ▲0.1453.47 ▲2.87
Posts /wp-admin/edit.php3.55 ▲0.2051.89 ▲0.93
Add New Post /wp-admin/post-new.php6.02 ▲0.14141.41 ▲40.57
Media Library /wp-admin/upload.php3.36 ▲0.1438.64 ▼0.22
All Call To Actions /wp-admin/edit.php?post_type=wen_cta3.4142.54
Add New /wp-admin/post-new.php?post_type=wen_cta3.4857.10

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WEN Call To Action
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲3213.16 ▼1.191.87 ▼0.0642.34 ▼1.88
Dashboard /wp-admin2,233 ▲245.85 ▲1.06112.65 ▲1.8041.35 ▼0.91
Posts /wp-admin/edit.php2,116 ▲302.00 ▼0.0640.58 ▲4.2634.38 ▲2.87
Add New Post /wp-admin/post-new.php1,559 ▲2522.94 ▼0.07658.11 ▼42.0949.78 ▼5.79
Media Library /wp-admin/upload.php1,418 ▲304.27 ▲0.0696.35 ▼16.4542.22 ▼6.59
All Call To Actions /wp-admin/edit.php?post_type=wen_cta1,0962.0030.7031.55
Add New /wp-admin/post-new.php?post_type=wen_cta2,4407.52177.3884.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

wen-call-to-action/wen-call-to-action.php Passed 13 tests

The principal PHP file in "WEN Call To Action" v. 1.4.2 is loaded by WordPress automatically on each request
53 characters long description:
Easily create call to action for your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected587 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10209625517
CSS441070

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3282.05%
▷ Protected methods00.00%
▷ Private methods717.95%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
No PNG files were detected