90% dco-post-validator

Code Review | DCO Post Validator

WordPress plugin DCO Post Validator scored90%from 54 tests.

About plugin

  • Plugin page: dco-post-validator
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Apr 20, 2017
  • Latest release: May 27, 2020
  • Number of updates: 16
  • Update frequency: every 71.1 days
  • Top authors: denisco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,480 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.91ms] Passed 4 tests

A check of server-side resources used by DCO Post Validator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.12 ▼5.32
Dashboard /wp-admin3.36 ▲0.0547.22 ▲0.64
Posts /wp-admin/edit.php3.47 ▲0.1242.85 ▼6.57
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.03 ▼8.37
Media Library /wp-admin/upload.php3.28 ▲0.0541.59 ▲7.03
DCO Post Validator /wp-admin/options-general.php?page=dco-post-validator3.2529.91

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for DCO Post Validator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.40 ▲0.031.79 ▲0.1142.85 ▲1.57
Dashboard /wp-admin2,219 ▲315.80 ▲0.8996.14 ▼8.9937.97 ▼2.37
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0534.37 ▼2.1136.19 ▲1.27
Add New Post /wp-admin/post-new.php1,540 ▼423.37 ▲0.19668.48 ▲35.3255.20 ▲8.21
Media Library /wp-admin/upload.php1,407 ▲194.26 ▲0.0294.84 ▼6.2742.44 ▲2.78
DCO Post Validator /wp-admin/options-general.php?page=dco-post-validator8612.0323.7128.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

dco-post-validator/dco-post-validator.php Passed 13 tests

The entry point to "DCO Post Validator" version 1.1.0 is a PHP file that has certain tags in its header comment area
92 characters long description:
Allows you to make post, page, custom post elements required: title, content, featured image

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin279 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP45658171
JavaScript2146108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.33
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1161.11%
▷ Protected methods527.78%
▷ Private methods211.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin