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 gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼145.03ms] Passed 4 tests
This is a short check of server-side resources used by Bainternet User Ranks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 36.75 ▲14.34 |
Dashboard /wp-admin | 3.14 ▲0.09 | 46.66 ▼5.52 |
Posts /wp-admin/edit.php | 3.19 ▲0.09 | 48.31 ▲1.94 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 83.20 ▼579.05 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 39.19 ▲2.50 |
Bainternet User Ranks /wp-admin/options-general.php?page=ba_user_rank | 3.05 | 28.81 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
baur |
Browser metrics Passed 4 tests
An overview of browser requirements for Bainternet User Ranks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.19 ▲0.66 | 9.77 ▲0.56 | 49.74 ▼0.88 |
Dashboard /wp-admin | 2,978 ▲47 | 6.03 ▲0.13 | 144.44 ▼4.40 | 113.68 ▲1.10 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.68 ▼0.02 | 68.79 ▼5.97 | 86.08 ▼10.14 |
Add New Post /wp-admin/post-new.php | 1,503 ▼180 | 18.57 ▼0.04 | 400.82 ▲14.32 | 114.72 ▼1.27 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.01 ▼0.02 | 157.27 ▼1.57 | 125.55 ▼1.28 |
Bainternet User Ranks /wp-admin/options-general.php?page=ba_user_rank | 1,308 | 2.11 | 69.70 | 91.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- baur
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bainternet-user-ranks/baur.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: forum like ranking, user publish rank, user publish ranks, user karma, post and comments ranking...
bainternet-user-ranks/baur.php 92% from 13 tests
The principal PHP file in "Bainternet User Ranks" v. 1.5.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bainternet-user-ranks.php" instead of "baur.php")
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
Success! There were no dangerous files found in this plugin371 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 66 | 371 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin