73% wp-coder

Code Review | WP Coder - Powerful HTML, CSS, JS and PHP Injection

WordPress plugin WP Coder - Powerful HTML, CSS, JS and PHP Injection scored73%from 54 tests.

About plugin

  • Plugin page: wp-coder
  • Plugin version: 3.2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Feb 2, 2018
  • Latest release: Dec 2, 2023
  • Number of updates: 53
  • Update frequency: every 40.3 days
  • Top authors: Wpcalc (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

10,000+ active /189,477 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2139.68 ▼9.45
Dashboard /wp-admin3.50 ▲0.1548.25 ▼9.35
Posts /wp-admin/edit.php3.61 ▲0.2550.52 ▲3.27
Add New Post /wp-admin/post-new.php6.08 ▲0.1984.88 ▼11.85
Media Library /wp-admin/upload.php3.42 ▲0.1936.10 ▲4.49
Global PHP /wp-admin/admin.php?page=wp-coder-global3.4333.33
Support /wp-admin/admin.php?page=wp-coder-support3.5140.89
Tools /wp-admin/admin.php?page=wp-coder-tools3.4634.78
Add new /wp-admin/admin.php?page=wp-coder-settings3.5681.31
All Codes /wp-admin/admin.php?page=wp-coder3.5443.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲14214.33 ▼0.071.66 ▼0.0427.24 ▼18.25
Dashboard /wp-admin2,283 ▲1095.66 ▼0.0191.75 ▼10.7643.63 ▼0.72
Posts /wp-admin/edit.php2,192 ▲892.00 ▲0.0637.29 ▼6.1234.49 ▲1.34
Add New Post /wp-admin/post-new.php1,562 ▲3223.02 ▼0.10761.29 ▲134.1257.79 ▲3.20
Media Library /wp-admin/upload.php1,486 ▲834.30 ▲0.1193.95 ▼3.5441.84 ▼2.64
Global PHP /wp-admin/admin.php?page=wp-coder-global1,1354.0291.0648.03
Support /wp-admin/admin.php?page=wp-coder-support1,7658.73206.3068.52
Tools /wp-admin/admin.php?page=wp-coder-tools1,0453.6242.9136.35
Add new /wp-admin/admin.php?page=wp-coder-settings1,7244.1866.9578.42
All Codes /wp-admin/admin.php?page=wp-coder1,1593.6752.6464.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

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)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP511,1043516,133
CSS6218251,608
Sass17136121,052
JavaScript312538556
SVG20046

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 code0.35
Average class complexity15.20
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes26.67%
Methods232
▷ Static methods13658.62%
▷ Public methods15968.53%
▷ Protected methods10.43%
▷ Private methods7231.03%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants00.00%
▷ Class constants15100.00%
▷ Public constants15100.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
FileSize - originalSize - compressedSavings
assets/img/plugin-logo.png4.73KB4.99KB0.00%
assets/img/wow-icon.png121.88KB28.08KB▼ 76.96%