10% dkoated-cta-buttons

Code Review | DKOATED CTA Buttons

WordPress plugin DKOATED CTA Buttons scored 10% from 54 tests.

About plugin

  • Plugin page: dkoated-cta-buttons
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.4
  • WordPress version: 5.8.1
  • First release: Dec 13, 2011
  • Latest release: Jun 21, 2012
  • Number of updates: 65
  • Update frequency: every 2.9 days
  • Top authors: dkoated (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 14,686 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/dkoated-cta-buttons/dkoated-cta-buttons.php+60
    Methods with the same name as their class will not be constructors in a future version of PHP; dkoated_cta_buttons_plugin_adminmenu has a deprecated constructor

Server metrics [RAM: ▼0.24MB] [CPU: ▼149.24ms] Passed 4 tests

This is a short check of server-side resources used by DKOATED CTA Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.985.28 ▼14.48
Dashboard /wp-admin3.07 ▲0.0242.13 ▼5.12
Posts /wp-admin/edit.php3.13 ▲0.0239.68 ▼1.93
Add New Post /wp-admin/post-new.php5.43 ▼0.0084.98 ▼575.42
Media Library /wp-admin/upload.php3.02 ▲0.0231.96 ▼0.77
CTA Buttons /wp-admin/options-general.php?page=dkoated-cta-buttons/dkoated-cta-buttons.php2.9930.92

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for DKOATED CTA Buttons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,717 ▲12115.77 ▼0.198.59 ▼1.7046.17 ▲1.90
Dashboard /wp-admin2,972 ▲385.89 ▼0.35129.15 ▼40.78139.54 ▲24.21
Posts /wp-admin/edit.php2,763 ▲242.69 ▼0.0160.94 ▼4.1988.17 ▼3.55
Add New Post /wp-admin/post-new.php1,680 ▲818.87 ▲0.07366.75 ▲9.78111.12 ▲5.15
Media Library /wp-admin/upload.php1,757 ▼505.04 ▲0.03137.32 ▼8.92136.63 ▲22.83
CTA Buttons /wp-admin/options-general.php?page=dkoated-cta-buttons/dkoated-cta-buttons.php2,4676.84194.98140.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dkoated-cta-buttons/dkoated-cta-buttons.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=dkoated-cta-buttons/dkoated-cta-buttons.php
    • > Network (severe)
    https://apis.google.com/u/0/se/0/_/+1/fastbutton?usegapi=1&origin=http%3A%2F%2Fwp.com&url=http%3A%2F%2Fdkoated.com%2F&gsrc=3p&ic=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_US.7Qaqnm_1sO0.O%2Fam%3DAQ%2Fd%3D1%2Frs%3DAGLTcCMlhJgy_5nQ_Wt0jHMAZa6UDzBuWQ%2Fm%3D__features__#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1637221182080&_gfid=I0_1637221182080&parent=http%3A%2F%2Fwp.com&pfname=&rpctoken=31646706 - Failed to load resource: the server responded with a status of 404 ()


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Too many tags (33 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please add images for these screenshots: #1 (Extralarge buttons: Normal-style with sub-headlines), #2 (Extralarge buttons: Normal-style without sub-headlines)
Please take inspiration from this readme.txt

dkoated-cta-buttons/dkoated-cta-buttons.php 92% from 13 tests

The main file in "DKOATED CTA Buttons" v. 1.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)

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
Everything looks great! No dangerous files found in this plugin448 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.23
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity7.33
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings