94% junkie-content-types

Code Review | Junkie Types

WordPress plugin Junkie Types scored 94% from 54 tests.

About plugin

  • Plugin page: junkie-content-types
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 5.9.2
  • First release: Apr 22, 2015
  • Latest release: Feb 18, 2019
  • Number of updates: 9
  • Update frequency: every 155.3 days
  • Top authors: themejunkie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,845 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Junkie Types
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0288.14 ▲38.54
Dashboard /wp-admin3.42 ▲0.0134.16 ▼3.88
Posts /wp-admin/edit.php3.65 ▲0.0140.02 ▲2.21
Add New Post /wp-admin/post-new.php6.89 ▼0.08145.20 ▼1,153.75
Media Library /wp-admin/upload.php3.30 ▲0.0127.33 ▲0.70

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Junkie Types
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲3916.00 ▼0.097.19 ▲1.552.87 ▲0.83
Dashboard /wp-admin2,874 ▲136.12 ▼0.05117.52 ▼17.56153.47 ▼8.99
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0164.31 ▼0.11144.05 ▼3.23
Add New Post /wp-admin/post-new.php1,753 ▲9220.86 ▲4.10485.81 ▲52.26160.15 ▼21.99
Media Library /wp-admin/upload.php1,698 ▼05.57 ▲0.04145.88 ▲7.98212.94 ▲29.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/postypes/team.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/postypes/slider.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/junkie-content-types/taxonomies/team-tax.php:41
    • > 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/metaboxes/feature-metaboxes.php:19
    • > 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/postypes/service.php:60
    • > 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/testimonial.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: testimonial, doctor, feature, department, slider...

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

The principal PHP file in "Junkie Types" v. 1.1.4 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,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
There were no cyclomatic complexity issued detected
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
There are no PNG files in this plugin