84% werkpress-theme-customization-request

Code Review | WerkPress Theme Customization Request

WordPress plugin WerkPress Theme Customization Request scored84%from 54 tests.

About plugin

  • Plugin page: werkpress-theme-c...
  • Plugin version: 0.5.3b...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2013
  • Latest release: Nov 6, 2013
  • Number of updates: 16
  • Update frequency: every 13.0 days
  • Top authors: ericmjorgensen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.29ms] Passed 4 tests

This is a short check of server-side resources used by WerkPress Theme Customization Request
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.90 ▼4.78
Dashboard /wp-admin3.32 ▲0.0142.84 ▼8.13
Posts /wp-admin/edit.php3.37 ▲0.0144.01 ▼0.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.89 ▼15.79
Media Library /wp-admin/upload.php3.24 ▲0.0137.80 ▲7.02

Server storage [IO: ▲0.02MB] [DB: ▲0.33MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WerkPress Theme Customization Request
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,041 ▲30613.24 ▼1.141.73 ▼0.1332.68 ▼10.18
Dashboard /wp-admin2,418 ▲2304.99 ▲0.1298.42 ▼17.77101.54 ▲54.51
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0635.76 ▼4.4732.40 ▼3.08
Add New Post /wp-admin/post-new.php1,530 ▲1017.94 ▼5.34589.75 ▼71.4755.70 ▼9.07
Media Library /wp-admin/upload.php1,395 ▲44.33 ▲0.1196.53 ▼1.2439.41 ▼3.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/werkpress-theme-customization-request/dashboard_widgets.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
2 plugin tags: customization, theme customization

werkpress-theme-customization-request/dashboard_widgets.php 85% from 13 tests

"WerkPress Theme Customization Request" version 0.5.3b...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("werkpress-theme-customization-request.php" instead of "dashboard_widgets.php")
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "0.5.3b...")

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
No dangerous file extensions were detected350 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22614162
CSS1231140
JavaScript112348

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/arrow.png1.17KB0.41KB▼ 64.46%
assets/admin-menu-icon.png2.24KB1.43KB▼ 35.90%
assets/logo.png3.67KB2.52KB▼ 31.21%