10% cleverwise-phpbb-statistics

Code Review | Cleverwise phpBB Statistics

WordPress plugin Cleverwise phpBB Statistics scored 10% from 54 tests.

About plugin

  • Plugin page: cleverwise-phpbb-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 5.9.2
  • First release: Mar 4, 2014
  • Latest release: Jan 28, 2022
  • Number of updates: 37
  • Update frequency: every 78.0 days
  • Top authors: cyberws (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,074 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/cleverwise-phpbb-statistics/index.php+59
    Function create_function() is deprecated

Server metrics [RAM: ▼2.36MB] [CPU: ▼353.47ms] Passed 4 tests

This is a short check of server-side resources used by Cleverwise phpBB Statistics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.92 ▼1.604.43 ▼48.05
Dashboard /wp-admin2.06 ▼1.354.26 ▼33.22
Posts /wp-admin/edit.php2.06 ▼1.584.67 ▼38.05
Add New Post /wp-admin/post-new.php2.06 ▼4.915.50 ▼1,294.57
Media Library /wp-admin/upload.php2.06 ▼1.244.59 ▼20.19
phpBB Statistics /wp-admin/options-general.php?page=cw-phpbb-stats2.066.42

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Cleverwise phpBB Statistics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1415.86 ▲0.085.87 ▼0.122.61 ▲0.26
Dashboard /wp-admin2,893 ▲326.14 ▼0.03119.32 ▼16.53152.71 ▼13.90
Posts /wp-admin/edit.php2,693 ▼13.24 ▼0.0165.22 ▲0.18140.17 ▼5.65
Add New Post /wp-admin/post-new.php1,755 ▲9422.03 ▲6.06461.95 ▲31.87162.01 ▲8.83
Media Library /wp-admin/upload.php1,703 ▲85.45 ▼0.07142.85 ▼2.34186.45 ▼0.52
phpBB Statistics /wp-admin/options-general.php?page=cw-phpbb-stats1,4962.4157.62204.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/cleverwise-phpbb-statistics/index.php+59
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_cw_ps_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=cw-phpbb-stats
    • > Deprecated in wp-content/plugins/cleverwise-phpbb-statistics/index.php+59
    Function create_function() is deprecated
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=cw-phpbb-stats
    • > Notice in wp-content/plugins/cleverwise-phpbb-statistics/psa.php+311
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cleverwise-phpbb-statistics/psa.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cleverwise-phpbb-statistics/index.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === cleverwise-phpbb-statistics === )
You can look at the official readme.txt

cleverwise-phpbb-statistics/index.php 85% from 13 tests

The main PHP file in "Cleverwise phpBB Statistics" ver. 2.0 adds more information about the plugin and also serves as the entry point for this 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 ("cleverwise-phpbb-statistics.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 350 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin664 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4148228664

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.20
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin