Benchmarks
Plugin footprint 48% 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.15MB] [CPU: ▼277.99ms] Passed 4 tests
An overview of server-side resources used by RedBrick
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 34.75 ▲13.68 |
Dashboard /wp-admin | 3.25 ▲0.19 | 49.19 ▲6.60 |
Posts /wp-admin/edit.php | 3.29 ▲0.19 | 43.44 ▲4.25 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 95.85 ▼1,116.42 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 29.59 ▼6.40 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
redbrick |
Browser metrics Passed 4 tests
A check of browser resources used by RedBrick
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,697 ▲115 | 15.94 ▲0.29 | 7.33 ▼0.11 | 48.42 ▲0.37 |
Dashboard /wp-admin | 2,997 ▲144 | 5.97 ▲0.10 | 136.08 ▼7.11 | 105.93 ▼1.87 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▲0.00 | 62.59 ▼4.54 | 94.94 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,857 ▲376 | 19.17 ▲0.66 | 370.05 ▲5.17 | 113.56 ▼1.53 |
Media Library /wp-admin/upload.php | 1,775 ▲3 | 5.00 ▲0.01 | 157.27 ▲5.66 | 109.09 ▼8.22 |
Uninstaller [IO: ▲0.08MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsThis plugin does not fully uninstall, leaving 2 options in the database
- The plugin did not uninstall gracefully
- > Compile error in wp-content/plugins/redbrick/library/base-plugin.class.php+11
Cannot declare class RedBrick\BasePlugin, because the name is already in use
- Incomplete uninstall procedure, leaving 11 files (0.08MB) in the plugin directory
- (new file) library/index.php
- (new file) readme.txt
- (new file) includes/index.php
- (new file) index.php
- (new file) library/db.class.php
- (new file) license.txt
- (new file) redbrick.php
- (new file) library/base-plugin.class.php
- (new file) includes/comment-validator.class.php
- (new file) includes/core.class.php
- ...
- recovery_mode_email_last_sent
- redbrick
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'RedBrick\\BasePlugin' not found in wp-content/plugins/redbrick/includes/core.class.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function RedBrick\\is_admin() in wp-content/plugins/redbrick/library/base-plugin.class.php:110
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: spam, anti-spam, comments
redbrick/redbrick.php Passed 13 tests
"RedBrick" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
Simple anti-spam plugin for WordPress blogs.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin932 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 327 | 648 | 932 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 1 | 33.33% |
Methods | 83 | |
▷ Static methods | 2 | 2.41% |
▷ Public methods | 61 | 73.49% |
▷ Protected methods | 6 | 7.23% |
▷ Private methods | 16 | 19.28% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin