Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.30MB] [CPU: ▼158.24ms] Passed 4 tests
An overview of server-side resources used by Custom Code
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 33.75 ▼3.05 |
Dashboard /wp-admin | 3.10 ▲0.05 | 48.58 ▲0.36 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 47.39 ▲1.45 |
Add New Post /wp-admin/post-new.php | 4.09 ▼1.35 | 46.00 ▼626.37 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 29.13 ▼3.90 |
All Custom Codes /wp-admin/edit.php?post_type=custom_code | 3.09 | 30.84 |
Add Custom Code /wp-admin/post-new.php?post_type=custom_code | 2.98 | 33.75 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Custom Code
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,747 ▲175 | 16.10 ▲0.10 | 10.29 ▼0.59 | 49.48 ▼0.78 |
Dashboard /wp-admin | 3,005 ▲68 | 6.06 ▲0.06 | 146.14 ▼8.33 | 105.89 ▼5.78 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.72 ▼0.00 | 64.81 ▲1.37 | 92.35 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,706 ▲23 | 18.24 ▼0.51 | 409.56 ▲14.65 | 114.55 ▲9.81 |
Media Library /wp-admin/upload.php | 1,842 ▲35 | 5.04 ▲0.02 | 145.56 ▼3.81 | 123.45 ▲10.88 |
All Custom Codes /wp-admin/edit.php?post_type=custom_code | 1,431 | 2.62 | 69.95 | 74.80 |
Add Custom Code /wp-admin/post-new.php?post_type=custom_code | 2,016 | 3.30 | 91.14 | 104.99 |
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 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/post-new.php?post_type=custom_code
- > Notice in wp-content/plugins/custom-code/custom-code.php+101
Undefined index: custom_code_noncename
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-code/custom-code.php:14
- > 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)
No browser errors were detected
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
7 plugin tags: css, post, custom post, script, header...
custom-code/custom-code.php Passed 13 tests
The main PHP script in "Custom Code" version 1.1 is automatically included on every request by WordPress
51 characters long description:
Add Custom script and CSS code to header and footer
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected161 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 53 | 161 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin