74% call-to-action-plugin

Code Review | Call To Action Plugin

WordPress plugin Call To Action Plugin scored74%from 54 tests.

About plugin

  • Plugin page: call-to-action-pl...
  • Plugin version: 3.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.3.2
  • WordPress version: 6.3.1
  • First release: Oct 4, 2010
  • Latest release: May 13, 2012
  • Number of updates: 66
  • Update frequency: every 8.9 days
  • Top authors: tmarek (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /5,237 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.05MB] [CPU: ▼8.05ms] Passed 4 tests

This is a short check of server-side resources used by Call To Action Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.92 ▼7.63
Dashboard /wp-admin3.37 ▲0.0752.42 ▼4.31
Posts /wp-admin/edit.php3.42 ▲0.0751.91 ▼3.52
Add New Post /wp-admin/post-new.php5.50 ▼0.3982.27 ▼16.73
Media Library /wp-admin/upload.php3.29 ▲0.0641.51 ▲5.05

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 7 new options
New tables
wp_custombox
New WordPress options
cbox_db_version
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Call To Action Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.35 ▲0.191.66 ▲0.0341.50 ▼2.66
Dashboard /wp-admin2,214 ▲345.64 ▲0.0387.76 ▼4.4938.81 ▼2.84
Posts /wp-admin/edit.php2,116 ▲162.01 ▼0.0140.84 ▲0.5237.67 ▼0.01
Add New Post /wp-admin/post-new.php6,254 ▲4,72818.86 ▼4.40872.27 ▲214.2554.14 ▼1.46
Media Library /wp-admin/upload.php1,413 ▲194.20 ▼0.0699.92 ▲0.0443.68 ▲0.10

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
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_custombox
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • cbox_db_version
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please take a closer look at the following
  • 1× 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/call-to-action-plugin/call-to-action-plugin.php:258

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg), #4 (screenshot-4.jpg), #5 (screenshot-5.jpg), #6 (screenshot-6.jpg)
The official readme.txt is a good inspiration

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

The entry point to "Call To Action Plugin" version 3.1.3 is a PHP file that has certain tags in its header comment area
55 characters long description:
Easily add a Call To Action Box to your WordPress blog!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin284 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15213284

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png17.11KB8.26KB▼ 51.72%