84% multiple-content-types

Code Review | Multiple Content Types

WordPress plugin Multiple Content Types scored84%from 54 tests.

About plugin

  • Plugin page: multiple-content-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7
  • WordPress version: 6.3.1
  • First release: Dec 15, 2016
  • Latest release: Dec 19, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: woodent (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /880 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Multiple Content Types
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.02 ▼2.87
Dashboard /wp-admin3.31 ▲0.0143.04 ▼4.56
Posts /wp-admin/edit.php3.36 ▲0.0143.33 ▼0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.92 ▲3.46
Media Library /wp-admin/upload.php3.24 ▲0.0133.26 ▲1.49

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

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

Browser metrics Passed 4 tests

Multiple Content Types: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.60 ▼0.784.66 ▲2.7937.88 ▼6.16
Dashboard /wp-admin2,206 ▲185.85 ▼0.01110.34 ▼6.5443.34 ▼0.04
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0539.34 ▲2.4133.84 ▲0.08
Add New Post /wp-admin/post-new.php1,542 ▼218.56 ▲0.15650.90 ▲5.9664.07 ▼7.07
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0594.20 ▼7.1042.50 ▼1.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-content-types/multiple-content-types.php:154

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === multiple-content-types === )
The official readme.txt might help

multiple-content-types/multiple-content-types.php Passed 13 tests

The primary PHP file in "Multiple Content Types" version 1.0.0 is used by WordPress to initiate all plugin functionality
110 characters long description:
Easily select which content types (custom post types) you want to display on your main blog and archive pages.

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
Good job! No executable or dangerous file extensions detected80 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2274880

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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