Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼6.85ms] Passed 4 tests
Server-side resources used by WP Coder - Powerful HTML, CSS, JS and PHP Injection
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 39.68 ▼9.45 |
Dashboard /wp-admin | 3.50 ▲0.15 | 48.25 ▼9.35 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 50.52 ▲3.27 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 84.88 ▼11.85 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.10 ▲4.49 |
Global PHP /wp-admin/admin.php?page=wp-coder-global | 3.43 | 33.33 |
Support /wp-admin/admin.php?page=wp-coder-support | 3.51 | 40.89 |
Tools /wp-admin/admin.php?page=wp-coder-tools | 3.46 | 34.78 |
Add new /wp-admin/admin.php?page=wp-coder-settings | 3.56 | 81.31 |
All Codes /wp-admin/admin.php?page=wp-coder | 3.54 | 43.84 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 114 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wow_coder |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
wow_coder_db_version |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Coder - Powerful HTML, CSS, JS and PHP Injection
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲142 | 14.33 ▼0.07 | 1.66 ▼0.04 | 27.24 ▼18.25 |
Dashboard /wp-admin | 2,283 ▲109 | 5.66 ▼0.01 | 91.75 ▼10.76 | 43.63 ▼0.72 |
Posts /wp-admin/edit.php | 2,192 ▲89 | 2.00 ▲0.06 | 37.29 ▼6.12 | 34.49 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,562 ▲32 | 23.02 ▼0.10 | 761.29 ▲134.12 | 57.79 ▲3.20 |
Media Library /wp-admin/upload.php | 1,486 ▲83 | 4.30 ▲0.11 | 93.95 ▼3.54 | 41.84 ▼2.64 |
Global PHP /wp-admin/admin.php?page=wp-coder-global | 1,135 | 4.02 | 91.06 | 48.03 |
Support /wp-admin/admin.php?page=wp-coder-support | 1,765 | 8.73 | 206.30 | 68.52 |
Tools /wp-admin/admin.php?page=wp-coder-tools | 1,045 | 3.62 | 42.91 | 36.35 |
Add new /wp-admin/admin.php?page=wp-coder-settings | 1,724 | 4.18 | 66.95 | 78.42 |
All Codes /wp-admin/admin.php?page=wp-coder | 1,159 | 3.67 | 52.64 | 64.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_wow_coder
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- wow_coder_db_version
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-coder/includes/pages/7.Changelog.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (HTML block), #2 (CSS Block), #3 (JavaScript Block), #4 (Include custom CSS and JS files), #5 (Publish Information), #6 (PHP Block), #7 (PHP Global Block)
wp-coder/wp-coder.php 85% from 13 tests
The main PHP script in "WP Coder - Powerful HTML, CSS, JS and PHP Injection" version 3.2.1 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: The required version number must match the one declared in readme.txt ("3.2" instead of "5.4")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected9,395 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 1,104 | 351 | 6,133 |
CSS | 6 | 218 | 25 | 1,608 |
Sass | 17 | 136 | 12 | 1,052 |
JavaScript | 3 | 125 | 38 | 556 |
SVG | 2 | 0 | 0 | 46 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 2 | 6.67% |
Methods | 232 | |
▷ Static methods | 136 | 58.62% |
▷ Public methods | 159 | 68.53% |
▷ Protected methods | 1 | 0.43% |
▷ Private methods | 72 | 31.03% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 100.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
2 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/plugin-logo.png | 4.73KB | 4.99KB | 0.00% |
assets/img/wow-icon.png | 121.88KB | 28.08KB | ▼ 76.96% |