Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.90ms] Passed 4 tests
Analyzing server-side resources used by WP Custom Code
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.15 ▲0.03 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.21 ▲0.10 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.15 ▼2.65 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.97 ▲1.58 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.50 ▼1.08 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Custom Code
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 15.03 ▲0.87 | 1.81 ▼0.51 | 47.90 ▲2.03 |
Dashboard /wp-admin | 2,231 ▲39 | 6.39 ▲1.40 | 140.73 ▲34.20 | 43.56 ▼0.05 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 3.44 ▲1.42 | 85.09 ▲43.45 | 36.15 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6,444 ▲4,925 | 27.33 ▲4.17 | 972.83 ▲292.32 | 63.42 ▲12.32 |
Media Library /wp-admin/upload.php | 1,418 ▲36 | 5.24 ▲0.89 | 127.22 ▲1.10 | 42.16 ▼4.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-custom-code/wp-custom-code.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #2 (With CodeMirror it's easier to type your code), #3 (We added the pt_BR version.), #4 (The code is not replicated on every page.), #5 (Add the address of the library you want to add.)
- Screenshots: No descriptions were found for these screenshots #0, #0, #0, #0 in wp-custom-code/assets to your readme.txt
wp-custom-code/wp-custom-code.php Passed 13 tests
The principal PHP file in "WP Custom Code" v. 1.1.0 is loaded by WordPress automatically on each request
78 characters long description:
Add custom CSS and JavaScript to your pages and post in simple and handy ways.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin446 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 100 | 40 | 311 |
PO File | 1 | 21 | 23 | 68 |
JavaScript | 1 | 4 | 0 | 40 |
Markdown | 1 | 19 | 0 | 23 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin