77% employees-details-slides

Code Review | Membros Details Slide

WordPress plugin Membros Details Slide scored77%from 54 tests.

About plugin

  • Plugin page: employees-details...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2021
  • Latest release: Oct 30, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: jakirriaaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /275 total downloads

Benchmarks

Plugin footprint 83% from 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 gracefully, with no errors

Server metrics [RAM: ▲0.61MB] [CPU: ▼7.21ms] Passed 4 tests

Analyzing server-side resources used by Membros Details Slide
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4038.65 ▼2.37
Dashboard /wp-admin4.00 ▲0.6649.64 ▼8.87
Posts /wp-admin/edit.php4.02 ▲0.6751.27 ▲5.69
Add New Post /wp-admin/post-new.php6.59 ▲0.7183.15 ▼23.30
Media Library /wp-admin/upload.php3.92 ▲0.7041.00 ▲7.03
All Membros /wp-admin/edit.php?post_type=jr_employee_details3.9739.59
Add New /wp-admin/post-new.php?post_type=jr_employee_details4.4155.39
Departments /wp-admin/edit-tags.php?taxonomy=employee-department&post_type=jr_employee_details3.9239.77

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 377 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Membros Details Slide: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲21113.81 ▼0.195.97 ▲4.0943.36 ▲1.92
Dashboard /wp-admin2,248 ▲604.93 ▼0.97109.31 ▼8.4541.51 ▼4.87
Posts /wp-admin/edit.php2,134 ▲452.07 ▲0.1041.61 ▲3.9435.48 ▲0.34
Add New Post /wp-admin/post-new.php1,547 ▲1923.67 ▲5.29652.63 ▲52.5960.14 ▲11.24
Media Library /wp-admin/upload.php1,424 ▲394.26 ▲0.0297.23 ▼6.2440.77 ▼4.86
All Membros /wp-admin/edit.php?post_type=jr_employee_details1,1092.0133.2530.77
Add New /wp-admin/post-new.php?post_type=jr_employee_details2,3717.41158.8975.78
Departments /wp-admin/edit-tags.php?taxonomy=employee-department&post_type=jr_employee_details1,3022.2227.8427.37

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/employees-details-slides/init.php
  • 40× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/employees-details-slides/metabox/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/employees-details-slides/metabox/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/employees-details-slides/metabox/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/employees-details-slides/metabox/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/employees-details-slides/metabox/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/employees-details-slides/metabox/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/employees-details-slides/metabox/includes/types/CMB2_Type_Text_Time.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/employees-details-slides/metabox/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/employees-details-slides/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/employees-details-slides/metabox/includes/rest-api/CMB2_REST_Controller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: employee display, members, employee management, employee slider, employees details slides

employees-details-slides/init.php 62% from 13 tests

The main file in "Membros Details Slide" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.2")
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("employees-details-slides.php" instead of "init.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
There were no executable files found in this plugin54,784 lines of code in 226 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP592,2196,3627,470
JSON4006,633
CSS142761,1924,714
JavaScript93625901,476
Sass17306291,411
Markdown32450757

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.12
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes69
▷ Abstract classes913.04%
▷ Concrete classes6086.96%
▷ Final classes00.00%
Methods547
▷ Static methods9116.64%
▷ Public methods45583.18%
▷ Protected methods8916.27%
▷ Private methods30.55%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
metabox/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
metabox/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
metabox/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
metabox/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
metabox/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%