Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼318.99ms] Passed 4 tests
This is a short check of server-side resources used by Additional Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.16 | 59.99 ▲11.38 |
Dashboard /wp-admin | 3.51 ▲0.10 | 33.38 ▼2.46 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 39.05 ▲0.98 |
Add New Post /wp-admin/post-new.php | 7.03 ▲0.05 | 110.15 ▼1,275.31 |
Media Library /wp-admin/upload.php | 3.38 ▲0.09 | 24.68 ▲0.82 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Additional Content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.81 ▲0.03 | 5.73 ▲0.17 | 2.50 ▲0.15 |
Dashboard /wp-admin | 2,888 ▲30 | 6.15 ▼0.04 | 119.80 ▼10.46 | 155.50 ▼0.98 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.23 ▼0.01 | 64.25 ▼2.75 | 141.22 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,880 ▲219 | 22.95 ▲6.76 | 397.68 ▼23.12 | 165.98 ▼2.26 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.52 ▲0.02 | 137.54 ▲0.32 | 186.53 ▲4.01 |
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
Uninstaller ran successfully
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)
Even though no errors were found, this is by no means 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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: i in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_textarea() in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php:4
- > PHP Notice
Undefined variable: i in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php on line 3
- > PHP Notice
Undefined variable: label in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php on line 3
- > PHP Notice
Undefined variable: describedby in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php on line 4
- > PHP Notice
Undefined variable: i in wp-content/plugins/additional-content/includes/partials/repeatable-fields.php on line 4
- > PHP Notice
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)
No browser issues were found
Optimizations
Plugin configuration 93% 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: post, publish, shortcode, shortcodes, extra...
additional-content/additional-content.php 85% from 13 tests
Analyzing the main PHP file in "Additional Content" version 1.3.0
Please take the time to fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
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
No dangerous file extensions were detected1,032 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 286 | 544 | 872 |
JavaScript | 2 | 42 | 18 | 133 |
JSON | 2 | 0 | 0 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
Constants | 4 | |
▷ Global constants | 4 | 100.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