83% rapid-custom-post-types

Code Review | Rapid Custom Post Types

WordPress plugin Rapid Custom Post Types scored83%from 54 tests.

About plugin

  • Plugin page: rapid-custom-post...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2014
  • Latest release: Jan 28, 2014
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: loganhenson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /763 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.07MB] [CPU: ▼6.18ms] Passed 4 tests

This is a short check of server-side resources used by Rapid Custom Post Types
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.81 ▼5.50
Dashboard /wp-admin3.37 ▲0.0754.96 ▲0.81
Posts /wp-admin/edit.php3.42 ▲0.0655.37 ▲0.82
Add New Post /wp-admin/post-new.php5.97 ▲0.0992.32 ▼16.85
Media Library /wp-admin/upload.php3.29 ▲0.0637.54 ▼3.17
Add New /wp-admin/post-new.php?post_type=links3.4253.06
All Links /wp-admin/edit.php?post_type=links3.3341.32

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Rapid Custom Post Types
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.10 ▼0.431.61 ▼0.1641.45 ▼1.31
Dashboard /wp-admin2,222 ▲515.64 ▲0.0981.22 ▼12.6639.96 ▼3.96
Posts /wp-admin/edit.php2,130 ▲301.98 ▼0.0334.79 ▼2.0435.04 ▼0.80
Add New Post /wp-admin/post-new.php1,569 ▲4323.64 ▲0.15702.26 ▲9.6238.47 ▼26.36
Media Library /wp-admin/upload.php1,427 ▲304.20 ▼0.0298.30 ▼14.0244.22 ▼1.93
Add New /wp-admin/post-new.php?post_type=links2,3768.06194.2067.19
All Links /wp-admin/edit.php?post_type=links1,0911.9633.5729.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rapid-custom-post-types/custom_post_types.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rapid-custom-post-types/custom_post_admin_styles.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rapid-custom-post-types/custom_post_admin_styles.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • License: Not defined
  • License uri: Invalid url: ""
You can take inspiration from this readme.txt

rapid-custom-post-types/RCPT.php 92% from 13 tests

The main PHP script in "Rapid Custom Post Types" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("rapid-custom-post-types.php" instead of "RCPT.php")

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 plugin703 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG100414
PHP48548214
JavaScript1293265
CSS22310

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes2100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin