84% frontend-dashboard-custom-post

Code Review | Frontend Dashboard Custom Post and Taxonomies

WordPress plugin Frontend Dashboard Custom Post and Taxonomies scored84%from 54 tests.

About plugin

  • Plugin page: frontend-dashboar...
  • Plugin version: 1.5.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2017
  • Latest release: Sep 3, 2020
  • Number of updates: 39
  • Update frequency: every 26.0 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /30,008 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.92ms] Passed 4 tests

This is a short check of server-side resources used by Frontend Dashboard Custom Post and Taxonomies
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /26.60 ▲23.094,652,970.86 ▲4,652,928.87
Dashboard /wp-admin3.35 ▲0.0153.63 ▼3.20
Posts /wp-admin/edit.php3.41 ▲0.0050.15 ▼3.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0085.34 ▼16.44
Media Library /wp-admin/upload.php3.28 ▲0.0037.64 ▼0.81

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

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

Browser metrics Passed 4 tests

Frontend Dashboard Custom Post and Taxonomies: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.67 ▲1.531.73 ▼0.0348.76 ▲4.36
Dashboard /wp-admin2,204 ▲275.55 ▼0.0785.71 ▼36.4239.16 ▼11.80
Posts /wp-admin/edit.php2,110 ▲101.99 ▲0.0235.42 ▼0.2536.33 ▲1.47
Add New Post /wp-admin/post-new.php1,538 ▲1023.26 ▼0.05697.15 ▲74.5657.35 ▼11.74
Media Library /wp-admin/upload.php1,412 ▲154.18 ▼0.0796.08 ▼6.7745.94 ▼0.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× 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/frontend-dashboard-custom-post/menu/class-fed-cp-custom-posts.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frontend-dashboard-custom-post/menu/class-fed-cp-taxonomies.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/frontend-dashboard-custom-post/menu/class-fed-cp-menu.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/frontend-dashboard-custom-post/functions.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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: Please take inspiration from this readme.txt

frontend-dashboard-custom-post/frontend-dashboard-custom-post.php Passed 13 tests

The entry point to "Frontend Dashboard Custom Post and Taxonomies" version 1.5.10 is a PHP file that has certain tags in its header comment area
97 characters long description:
Frontend Dashboard Custom Post is a plugin to show the custom post inside the Frontend Dashboard.

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
Success! There were no dangerous files found in this plugin4,844 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP62535173,972
PO File2326332713
JavaScript1150156
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity104.67
▷ Minimum class complexity63.00
▷ Maximum class complexity186.00
Average method complexity8.40
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods3071.43%
▷ Protected methods819.05%
▷ Private methods49.52%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin