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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.92 ▼1.60 | 4.43 ▼48.05 |
Dashboard /wp-admin | 2.06 ▼1.35 | 4.26 ▼33.22 |
Posts /wp-admin/edit.php | 2.06 ▼1.58 | 4.67 ▼38.05 |
Add New Post /wp-admin/post-new.php | 2.06 ▼4.91 | 5.50 ▼1,294.57 |
Media Library /wp-admin/upload.php | 2.06 ▼1.24 | 4.59 ▼20.19 |
phpBB Statistics /wp-admin/options-general.php?page=cw-phpbb-stats | 2.06 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 15.86 ▲0.08 | 5.87 ▼0.12 | 2.61 ▲0.26 |
Dashboard /wp-admin | 2,893 ▲32 | 6.14 ▼0.03 | 119.32 ▼16.53 | 152.71 ▼13.90 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.24 ▼0.01 | 65.22 ▲0.18 | 140.17 ▼5.65 |
Add New Post /wp-admin/post-new.php | 1,755 ▲94 | 22.03 ▲6.06 | 461.95 ▲31.87 | 162.01 ▲8.83 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.45 ▼0.07 | 142.85 ▼2.34 | 186.45 ▼0.52 |
phpBB Statistics /wp-admin/options-general.php?page=cw-phpbb-stats | 1,496 | 2.41 | 57.62 | 204.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 148 | 228 | 664 |
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 code | 0.20 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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