10% clickserv

Code Review | ClickServ

WordPress plugin ClickServ scored10%from 54 tests.

About plugin

  • Plugin page: clickserv
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Aug 7, 2019
  • Latest release: Aug 7, 2019
  • Number of updates: 11
  • Update frequency: every 6.9 days
  • Top authors: clickserv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /618 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Compile error in wp-content/plugins/clickserv/includes/clikserv_redirects.php+8
    Cannot use "self" when no class scope is active

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.84ms] Passed 4 tests

Analyzing server-side resources used by ClickServ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.66 ▼5.09
Dashboard /wp-admin3.31 ▲0.0051.01 ▼0.80
Posts /wp-admin/edit.php3.36 ▲0.0056.18 ▲1.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.37 ▲0.37
Media Library /wp-admin/upload.php3.23 ▲0.0035.62 ▼1.85

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for ClickServ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.561.88 ▲0.1840.54 ▼3.26
Dashboard /wp-admin2,198 ▲215.61 ▼0.0494.19 ▲3.8936.75 ▼5.61
Posts /wp-admin/edit.php2,103 ▼01.99 ▼0.0341.03 ▼1.3035.74 ▲2.75
Add New Post /wp-admin/post-new.php1,526 ▼1123.34 ▲5.29640.06 ▲3.9555.11 ▼13.89
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.0698.50 ▼16.3943.31 ▼4.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Cannot use "self" when no class scope is active in wp-content/plugins/clickserv/includes/clikserv_redirects.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

clickserv/clickserv.php 92% from 13 tests

"ClickServ" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin246 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.00
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods315.79%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin