84% wp-custom-field-chart

Code Review | Wp Custom Field Chart

WordPress plugin Wp Custom Field Chart scored84%from 54 tests.

About plugin

  • Plugin page: wp-custom-field-c...
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2014
  • Latest release: Aug 18, 2014
  • Number of updates: 22
  • Update frequency: every 0.8 days
  • Top authors: showi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,126 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.35ms] Passed 4 tests

Server-side resources used by Wp Custom Field Chart
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.29 ▼7.44
Dashboard /wp-admin3.39 ▲0.0843.61 ▼3.47
Posts /wp-admin/edit.php3.50 ▲0.1447.68 ▼3.28
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.98 ▼11.19
Media Library /wp-admin/upload.php3.31 ▲0.0836.83 ▼1.54

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Wp Custom Field Chart
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.021.89 ▼0.2440.67 ▲0.13
Dashboard /wp-admin2,209 ▲214.83 ▼1.2396.10 ▼11.0140.63 ▼2.45
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0339.09 ▼2.0036.75 ▼1.55
Add New Post /wp-admin/post-new.php1,542 ▲2318.65 ▼4.35608.49 ▼36.6650.30 ▼4.98
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.0294.84 ▼2.9241.58 ▲1.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just 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 add_shortcode() in wp-content/plugins/wp-custom-field-chart/wp-custom-field-chart.php:344

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

wp-custom-field-chart/wp-custom-field-chart.php 92% from 13 tests

This is the main PHP file of "Wp Custom Field Chart" version 0.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 167 characters long)

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
Everything looks great! No dangerous files found in this plugin3,065 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25013752,514
PHP35752509
XML30040
INI1002

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.29
Average class complexity4.14
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions964.29%
▷ Anonymous functions535.71%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected