Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼307.78ms] Passed 4 tests
Server-side resources used by Report Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 58.98 ▲8.31 |
Dashboard /wp-admin | 3.48 ▲0.07 | 33.72 ▼2.48 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 40.37 ▲2.00 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 101.06 ▼1,224.10 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 24.43 ▼6.54 |
Settings /wp-admin/admin.php?page=wprc_settings | 3.33 | 23.64 |
Reports /wp-admin/admin.php?page=wprc_reports_page | 3.33 | 33.00 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_contentreports |
New WordPress options |
---|
wprc_integration_settings |
wprc_db_version |
wprc_other_settings |
wprc_email_settings |
wprc_permissions_settings |
wprc_form_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Report Content
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,941 ▲187 | 16.22 ▲0.41 | 9.17 ▲3.49 | 2.85 ▲0.31 |
Dashboard /wp-admin | 2,926 ▲65 | 6.07 ▼0.07 | 137.88 ▲0.10 | 212.60 ▲55.26 |
Posts /wp-admin/edit.php | 2,738 ▲44 | 3.23 ▼0.00 | 63.88 ▼0.73 | 157.62 ▲19.06 |
Add New Post /wp-admin/post-new.php | 1,711 ▼6 | 16.42 ▼4.65 | 427.09 ▼53.18 | 175.79 ▲2.53 |
Media Library /wp-admin/upload.php | 1,729 ▲31 | 5.44 ▼0.10 | 137.90 ▼1.25 | 202.58 ▲3.89 |
Settings /wp-admin/admin.php?page=wprc_settings | 2,348 | 3.09 | 68.12 | 156.63 |
Reports /wp-admin/admin.php?page=wprc_reports_page | 1,283 | 2.64 | 54.63 | 111.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/report-content/inc/options-panel.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/report-content/inc/reports-list.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/report-content/inc/report-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/report-content/inc/meta-boxes.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/report-content/report-content.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: broken links, email notifications, email, report posts, website errors...
report-content/report-content.php Passed 13 tests
"Report Content" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
111 characters long description:
Inserts a secure form on specified pages so that your readers can report bugs, spam content and other problems.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,889 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 288 | 559 | 1,588 |
CSS | 2 | 53 | 0 | 250 |
JavaScript | 2 | 1 | 0 | 51 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 51 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 68.63% |
▷ Protected methods | 16 | 31.37% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/sprites.png | 0.55KB | 0.50KB | ▼ 8.69% |