83% ithstatswp-client

Code Review | IthStatsWP Client

WordPress plugin IthStatsWP Client scored83%from 54 tests.

About plugin

  • Plugin page: ithstatswp-client
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 19, 2016
  • Latest release: Apr 28, 2016
  • Number of updates: 6
  • Update frequency: every 11.8 days
  • Top authors: 4ebizz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /811 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.35ms] Passed 4 tests

This is a short check of server-side resources used by IthStatsWP Client
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.67 ▼4.89
Dashboard /wp-admin3.31 ▲0.0146.94 ▼1.28
Posts /wp-admin/edit.php3.36 ▲0.0148.12 ▲0.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.67 ▼2.08
Media Library /wp-admin/upload.php3.23 ▲0.0034.62 ▼1.15

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
ith_auth_key

Browser metrics Passed 4 tests

An overview of browser requirements for IthStatsWP Client
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.411.82 ▲0.2642.37 ▲3.65
Dashboard /wp-admin2,192 ▲155.57 ▼0.0589.69 ▲2.2142.75 ▲4.04
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0338.79 ▲1.0435.49 ▼1.21
Add New Post /wp-admin/post-new.php1,535 ▲718.30 ▼4.81614.71 ▼68.9864.42 ▲12.74
Media Library /wp-admin/upload.php1,397 ▼34.22 ▲0.06101.04 ▲0.5844.49 ▼2.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following items
  • 18× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/ithstatswp-client/includes/actions/IthListPluginsThemesAction.php
    • > /wp-content/plugins/ithstatswp-client/includes/base/BaseAction.php
    • > /wp-content/plugins/ithstatswp-client/includes/ITH_Auth.php
    • > /wp-content/plugins/ithstatswp-client/includes/base/ITH_Bulk_Plugin.php
    • > /wp-content/plugins/ithstatswp-client/includes/actions/IthForbiddenAction.php
    • > /wp-content/plugins/ithstatswp-client/includes/actions/IthActivatePluginAction.php
    • > /wp-content/plugins/ithstatswp-client/includes/base/ITH_Upgrader_Skins.php
    • > /wp-content/plugins/ithstatswp-client/includes/ITH_Core.php
    • > /wp-content/plugins/ithstatswp-client/includes/actions/IthNotFoundAction.php
    • > /wp-content/plugins/ithstatswp-client/includes/actions/IthUpgradeCoreAction.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
  • Screenshots: Please add an image for screenshot #1 (2.)
You can look at the official readme.txt

ithstatswp-client/init.php 92% from 13 tests

The main file in "IthStatsWP Client" v. 0.0.2 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:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ithstatswp-client.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected591 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP1914968573
CSS14018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity5.61
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods34
▷ Static methods411.76%
▷ Public methods3088.24%
▷ Protected methods411.76%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin