74% clickperf

Code Review | Clickperf

WordPress plugin Clickperf scored 74% from 54 tests.

About plugin

  • Plugin page: clickperf
  • Plugin version: 0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Oct 17, 2019
  • Latest release: Oct 18, 2019
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: damscss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 497 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.24MB] [CPU: ▼43.70ms] Passed 4 tests

Analyzing server-side resources used by Clickperf
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7214.70 ▼27.45
Dashboard /wp-admin2.77 ▼0.5316.14 ▼29.90
Posts /wp-admin/edit.php2.77 ▼0.5817.05 ▼30.05
Add New Post /wp-admin/post-new.php2.77 ▼3.1117.15 ▼87.38
Media Library /wp-admin/upload.php2.77 ▼0.4515.23 ▼21.92

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

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

Browser metrics Passed 4 tests

Clickperf: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7613.67 ▼0.691.50 ▼0.6139.77 ▼4.24
Dashboard /wp-admin2,236 ▲485.80 ▲0.9298.10 ▼3.8437.19 ▼7.95
Posts /wp-admin/edit.php2,122 ▲332.03 ▲0.0335.19 ▼6.6435.88 ▲1.51
Add New Post /wp-admin/post-new.php1,550 ▲2123.22 ▲4.44581.49 ▼77.8946.89 ▼14.77
Media Library /wp-admin/upload.php1,424 ▲424.24 ▲0.02101.01 ▼2.5343.73 ▲0.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/clickperf/clickperf.php+12
    Undefined index: clickid
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% 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 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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clickperf/clickperf.php:43

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

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

clickperf/clickperf.php Passed 13 tests

The main file in "Clickperf" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
33 characters long description:
Clickperf conversion postback url

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 plugin47 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP212947

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin