74% digitally-custom-posts

Code Review | Digitally Custom Posts

WordPress plugin Digitally Custom Posts scored 74% from 54 tests.

About plugin

  • Plugin page: digitally-custom-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Sep 7, 2021
  • Latest release: Sep 13, 2021
  • Number of updates: 10
  • Update frequency: every 0.6 days
  • Top authors: omarfolghe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,980 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▲4.95ms] Passed 4 tests

A check of server-side resources used by Digitally Custom Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2947.19 ▼0.95
Dashboard /wp-admin3.58 ▲0.2755.93 ▲5.71
Posts /wp-admin/edit.php3.69 ▲0.3358.52 ▲7.99
Add New Post /wp-admin/post-new.php6.28 ▲0.3996.25 ▲7.30
Media Library /wp-admin/upload.php3.50 ▲0.2744.66 ▲7.73
All testimonials /wp-admin/edit.php?post_type=dcp_testimonials3.5447.17
Add new /wp-admin/post-new.php?post_type=dcp_team3.5853.14
Add new /wp-admin/post-new.php?post_type=dcp_portfolio6.2796.81
Add new /wp-admin/post-new.php?post_type=dcp_services3.6557.23
All jobs /wp-admin/edit.php?post_type=dcp_jobs3.5446.91
Add new /wp-admin/post-new.php?post_type=dcp_testimonials3.5450.85
All services /wp-admin/edit.php?post_type=dcp_services3.5444.53
All projects /wp-admin/edit.php?post_type=dcp_portfolio3.5446.61
Category /wp-admin/edit-tags.php?taxonomy=cat_portfolio&post_type=dcp_portfolio3.4938.51
Add new /wp-admin/post-new.php?post_type=dcp_jobs3.6258.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Digitally Custom Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲21913.16 ▼1.464.85 ▲2.8041.43 ▼3.20
Dashboard /wp-admin2,345 ▲1605.86 ▲0.7597.65 ▼7.3839.20 ▼2.01
Posts /wp-admin/edit.php2,225 ▲1362.04 ▲0.0036.08 ▼5.3234.37 ▼2.75
Add New Post /wp-admin/post-new.php1,651 ▲13723.45 ▲5.95619.40 ▼91.3748.00 ▼16.38
Media Library /wp-admin/upload.php1,530 ▲1424.13 ▼0.0796.48 ▼3.1647.11 ▲1.30
All testimonials /wp-admin/edit.php?post_type=dcp_testimonials1,1922.0531.9931.41
Add new /wp-admin/post-new.php?post_type=dcp_team1,7583.6164.9031.35
Add new /wp-admin/post-new.php?post_type=dcp_portfolio1,62417.21895.2030.77
Add new /wp-admin/post-new.php?post_type=dcp_services7,3382.6878.4150.18
All jobs /wp-admin/edit.php?post_type=dcp_jobs1,2011.9931.9533.35
Add new /wp-admin/post-new.php?post_type=dcp_testimonials1,5722.5351.5540.71
All services /wp-admin/edit.php?post_type=dcp_services1,1922.0032.7231.81
All projects /wp-admin/edit.php?post_type=dcp_portfolio1,2401.9432.7933.93
Category /wp-admin/edit-tags.php?taxonomy=cat_portfolio&post_type=dcp_portfolio1,3982.1826.6425.28
Add new /wp-admin/post-new.php?post_type=dcp_jobs2,3347.64166.4858.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'function digitally_deactivate' not found or invalid function name
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digitally-custom-posts/includes/testimonials/testimonials.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digitally-custom-posts/includes/jobs/metabox.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/digitally-custom-posts/includes/services/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/digitally-custom-posts/includes/blog/blog.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digitally-custom-posts/includes/portfolio/portfolio.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digitally-custom-posts/includes/team/metabox.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/digitally-custom-posts/includes/portfolio/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/digitally-custom-posts/includes/team/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/digitally-custom-posts/includes/testimonials/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digitally-custom-posts/includes/services/services.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
1 plugin tags: custom post type

digitally-custom-posts/digitally-custom-posts.php 92% from 13 tests

The entry point to "Digitally Custom Posts" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,319 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JSON1001,442
PHP16229101715
PO File16972162

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions27
▷ Named functions27100.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
PNG images were not found in this plugin