Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.66MB] [CPU: ▼22.10ms] Passed 4 tests
A check of server-side resources used by Devpri Custom Code
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.87 ▼2.11 |
Dashboard /wp-admin | 3.34 ▼0.01 | 47.90 ▼10.98 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.75 ▼2.06 |
Add New Post /wp-admin/post-new.php | 3.18 ▼2.71 | 35.25 ▼73.25 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.45 ▲2.62 |
Add New /wp-admin/post-new.php?post_type=devpri_custom_code | 3.18 | 32.96 |
Custom Code /wp-admin/edit.php?post_type=devpri_custom_code | 3.30 | 34.98 |
Server storage [IO: ▲0.05MB] [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: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Devpri Custom Code
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 16.27 ▲1.51 | 1.73 ▼0.05 | 38.59 ▼0.41 |
Dashboard /wp-admin | 2,254 ▲69 | 6.85 ▲0.99 | 149.14 ▲45.78 | 43.90 ▲1.42 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 4.06 ▲2.06 | 85.62 ▲47.85 | 36.94 ▲4.70 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 24.84 ▲1.69 | 622.00 ▼46.91 | 32.98 ▼21.66 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 5.92 ▲1.73 | 131.85 ▲30.70 | 40.97 ▼4.96 |
Add New /wp-admin/post-new.php?post_type=devpri_custom_code | 1,744 | 4.93 | 76.16 | 40.82 |
Custom Code /wp-admin/edit.php?post_type=devpri_custom_code | 1,116 | 4.07 | 66.85 | 28.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% 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=devpri_custom_code
- > Notice in wp-content/plugins/devpri-custom-code/admin/class-devpri-custom-code-post.php+124
Undefined index: devpri-custom-code-nonce
- > GET request to /wp-admin/post-new.php?post_type=devpri_custom_code
- > Notice in wp-content/plugins/devpri-custom-code/admin/class-devpri-custom-code-post.php+124
Trying to get property 'id' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/devpri-custom-code/admin/views/partials/devpri-custom-code-admin-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/devpri-custom-code/admin/views/meta-boxes/options.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/devpri-custom-code/admin/views/meta-boxes/content.php:2
- > 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 is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: custom css, custom code, custom js, html
devpri-custom-code/devpri-custom-code.php Passed 13 tests
The primary PHP file in "Devpri Custom Code" version 1.0.0 is used by WordPress to initiate all plugin functionality
51 characters long description:
A simple plugin to display HTML/CSS/JS custom code.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected471 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 116 | 487 | 344 |
JavaScript | 3 | 6 | 27 | 87 |
CSS | 1 | 2 | 4 | 40 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin