68% d3-cpts

Code Review | D3 CPTs

WordPress plugin D3 CPTs scored68%from 54 tests.

About plugin

  • Plugin page: d3-cpts
  • Plugin version: 0.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 2, 2023
  • Latest release: Aug 23, 2023
  • Number of updates: 5
  • Update frequency: every 29.6 days
  • Top authors: d3adminnew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /133 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.23MB] [CPU: ▼43.72ms] Passed 4 tests

An overview of server-side resources used by D3 CPTs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7213.21 ▼27.16
Dashboard /wp-admin2.78 ▼0.5216.66 ▼35.98
Posts /wp-admin/edit.php2.78 ▼0.5715.18 ▼34.69
Add New Post /wp-admin/post-new.php2.78 ▼3.1015.51 ▼77.04
Media Library /wp-admin/upload.php2.78 ▼0.4414.04 ▼22.17
D3 Support /wp-admin/edit.php?post_type=d3_cpt_support2.7916.75
D3 Suite /wp-admin/admin.php?page=d3-suite2.7822.19
D3 Footer Copyright /wp-admin/edit.php?post_type=d3_cpt_footer_copy2.7914.87
D3 About /wp-admin/edit.php?post_type=d3_cpt_about2.7916.10
D3 CPTs /wp-admin/admin.php?page=d3-cpts-admin2.7813.79

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for D3 CPTs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10114.72 ▲0.351.65 ▼0.1841.45 ▼1.54
Dashboard /wp-admin2,256 ▲825.67 ▲0.0088.69 ▼14.8639.85 ▼4.94
Posts /wp-admin/edit.php2,164 ▲641.97 ▼0.0440.36 ▲1.1937.08 ▲1.37
Add New Post /wp-admin/post-new.php1,580 ▲5223.10 ▼0.16600.94 ▼73.2258.78 ▲0.99
Media Library /wp-admin/upload.php1,464 ▲644.23 ▼0.01101.55 ▼4.6046.40 ▲2.39
D3 Support /wp-admin/edit.php?post_type=d3_cpt_support1,1161.9731.4430.15
D3 Suite /wp-admin/admin.php?page=d3-suite8442.1529.0531.37
D3 Footer Copyright /wp-admin/edit.php?post_type=d3_cpt_footer_copy1,1341.9333.6129.39
D3 About /wp-admin/edit.php?post_type=d3_cpt_about1,1371.9531.7532.47
D3 CPTs /wp-admin/admin.php?page=d3-cpts-admin8332.0024.7127.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-post-type.php+700
    Invalid argument supplied for foreach()
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 24 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=d3-cpts-admin
    • > Warning in wp-includes/class-wp-post-type.php+700
    Invalid argument supplied for foreach()

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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/d3-cpts/d3-cpts.php
    • > /wp-content/plugins/d3-cpts/templates/d3-submenu-page-content.php
    • > /wp-content/plugins/d3-cpts/templates/d3-suite-page-content.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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: d3-cpt-about, d3

d3-cpts/d3-cpts.php Passed 13 tests

The primary PHP file in "D3 CPTs" version 0.1 is used by WordPress to initiate all plugin functionality
52 characters long description:
Create Custom Post Type About, Support and Copyright

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin271 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34127194
PO File1323477

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin