Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 5.28 ▼14.48 |
Dashboard /wp-admin | 3.07 ▲0.02 | 42.13 ▼5.12 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 39.68 ▼1.93 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 84.98 ▼575.42 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.96 ▼0.77 |
CTA Buttons /wp-admin/options-general.php?page=dkoated-cta-buttons/dkoated-cta-buttons.php | 2.99 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,717 ▲121 | 15.77 ▼0.19 | 8.59 ▼1.70 | 46.17 ▲1.90 |
Dashboard /wp-admin | 2,972 ▲38 | 5.89 ▼0.35 | 129.15 ▼40.78 | 139.54 ▲24.21 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 2.69 ▼0.01 | 60.94 ▼4.19 | 88.17 ▼3.55 |
Add New Post /wp-admin/post-new.php | 1,680 ▲8 | 18.87 ▲0.07 | 366.75 ▲9.78 | 111.12 ▲5.15 |
Media Library /wp-admin/upload.php | 1,757 ▼50 | 5.04 ▲0.03 | 137.32 ▼8.92 | 136.63 ▲22.83 |
CTA Buttons /wp-admin/options-general.php?page=dkoated-cta-buttons/dkoated-cta-buttons.php | 2,467 | 6.84 | 194.98 | 140.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
- > PHP Fatal error
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 ()
Optimizations
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 1 | 12 | 446 |
CSS | 1 | 0 | 0 | 2 |
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 code | 1.23 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 7.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 0.16KB | 0.21KB | 0.00% |
img/icon32.png | 0.82KB | 0.92KB | 0.00% |