84% wp-custom-data

Code Review | WP Custom Data

WordPress plugin WP Custom Data scored84%from 54 tests.

About plugin

  • Plugin page: wp-custom-data
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Nov 11, 2015
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: kapooo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /853 total downloads

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.02MB] [CPU: ▼6.84ms] Passed 4 tests

This is a short check of server-side resources used by WP Custom Data
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.15 ▲3.67
Dashboard /wp-admin3.34 ▼0.0147.60 ▼14.35
Posts /wp-admin/edit.php3.39 ▲0.0347.77 ▼6.48
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.91 ▼8.40
Media Library /wp-admin/upload.php3.26 ▲0.0337.03 ▲1.89

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_wp-custom-data
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Custom Data
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.451.74 ▼0.1038.98 ▼4.13
Dashboard /wp-admin2,198 ▲215.62 ▼0.0490.15 ▼4.9536.91 ▼7.26
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0643.11 ▲5.4337.88 ▲3.63
Add New Post /wp-admin/post-new.php1,526 ▼023.17 ▲0.09603.18 ▼13.8574.58 ▲13.05
Media Library /wp-admin/upload.php1,400 ▲94.27 ▲0.08100.30 ▲2.7545.20 ▲1.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_wp-custom-data
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-custom-data/wp-custom-data-widget.php:13

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: data, custom, custom data, custom fields, theme...

wp-custom-data/wp-custom-data-widget.php 92% from 13 tests

"WP Custom Data" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-custom-data.php" instead of "wp-custom-data-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1231199

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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
No PNG files were detected