84% junkie-content-types

Code Review | Junkie Types

WordPress plugin Junkie Types scored84%from 54 tests.

About plugin

  • Plugin page: junkie-content-types
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Apr 22, 2015
  • Latest release: Oct 26, 2022
  • Number of updates: 11
  • Update frequency: every 249.5 days
  • Top authors: themejunkie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,509 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Junkie Types
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.96 ▼4.94
Dashboard /wp-admin3.31 ▲0.0147.23 ▼10.57
Posts /wp-admin/edit.php3.36 ▲0.0149.80 ▲2.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.81 ▼0.11
Media Library /wp-admin/upload.php3.24 ▲0.0131.45 ▼4.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Junkie Types
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.34 ▼0.011.86 ▼0.2544.62 ▲1.84
Dashboard /wp-admin2,189 ▲95.51 ▼0.1484.57 ▼18.0937.32 ▼6.15
Posts /wp-admin/edit.php2,102 ▲22.02 ▲0.0534.40 ▼2.9535.41 ▲0.98
Add New Post /wp-admin/post-new.php1,534 ▲623.05 ▲0.10672.57 ▼1.7653.78 ▼6.45
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.10112.04 ▲9.9048.01 ▲1.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 17× 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/junkie-content-types/metaboxes/testimonial-metaboxes.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/postypes/doctor.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/includes/functions.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/metaboxes/doctor-metaboxes.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/metaboxes/feature-metaboxes.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/postypes/testimonial.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/metaboxes/team-metaboxes.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/postypes/department.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/postypes/feature.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/metaboxes/service-metaboxes.php:19

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: team, doctor, custom post type, post type, testimonial...

junkie-content-types/junkie-content-types.php 92% from 13 tests

The main file in "Junkie Types" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,228 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP193293291,203
CSS14025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions62
▷ Named functions62100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
PNG images were not found in this plugin