68% easy-call-to-action

Code Review | Easy Call To Action

WordPress plugin Easy Call To Action scored68%from 54 tests.

About plugin

  • Plugin page: easy-call-to-action
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Mar 17, 2023
  • Latest release: Apr 2, 2023
  • Number of updates: 10
  • Update frequency: every 1.7 days
  • Top authors: codingwithmica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /350 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Easy Call To Action
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.16 ▲2.22
Dashboard /wp-admin3.40 ▲0.1048.66 ▲0.51
Posts /wp-admin/edit.php3.51 ▲0.1650.56 ▲2.51
Add New Post /wp-admin/post-new.php5.98 ▲0.1086.50 ▼11.43
Media Library /wp-admin/upload.php3.32 ▲0.1039.05 ▲2.07
Settings /wp-admin/admin.php?page=easy-call-to-action-settings3.2932.14
Easy Call To Action /wp-admin/admin.php?page=easy-call-to-action3.4434.66

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables
wp_mica_ecta
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Call To Action
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,856 ▲7014.28 ▼0.141.70 ▼0.2343.27 ▼0.72
Dashboard /wp-admin2,247 ▲705.58 ▲0.0189.97 ▼0.7178.95 ▲34.76
Posts /wp-admin/edit.php2,170 ▲672.00 ▼0.0138.24 ▼2.3534.88 ▼2.93
Add New Post /wp-admin/post-new.php1,590 ▲6423.16 ▲0.35663.82 ▲13.9153.53 ▼8.83
Media Library /wp-admin/upload.php1,461 ▲674.22 ▲0.02103.95 ▼6.0567.33 ▲19.99
Settings /wp-admin/admin.php?page=easy-call-to-action-settings8862.0124.44120.55
Easy Call To Action /wp-admin/admin.php?page=easy-call-to-action1,5262.1135.7957.47

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-call-to-action/inc/admin/add-new-template.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-call-to-action/inc/admin/ecta-settings.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-call-to-action/easy-call-to-action.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/easy-call-to-action/inc/admin/admin-template.php:2

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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: easy call to action, cta, call to action, shortcode

easy-call-to-action/easy-call-to-action.php 85% from 13 tests

"Easy Call To Action" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.2")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,682 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP9118491,037
CSS2467333
JavaScript41117269
SVG10143

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity11.00
▷ Minimum method complexity2.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.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
There were not PNG files found in your plugin