73% career-section

Code Review | Career Section

WordPress plugin Career Section scored73%from 54 tests.

About plugin

  • Plugin page: career-section
  • Plugin version: 1.02
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2023
  • Latest release: Nov 10, 2023
  • Number of updates: 5
  • Update frequency: every 61.6 days
  • Top authors: shahinurislam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /372 total downloads

Benchmarks

Plugin footprint 65% 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.12MB] [CPU: ▼10.53ms] Passed 4 tests

This is a short check of server-side resources used by Career Section
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1535.87 ▼4.80
Dashboard /wp-admin3.44 ▲0.0944.00 ▼12.86
Posts /wp-admin/edit.php3.49 ▲0.1345.08 ▼8.94
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.29 ▼15.52
Media Library /wp-admin/upload.php3.36 ▲0.1333.82 ▲0.76
CS Tags /wp-admin/edit-tags.php?taxonomy=cs_tag&post_type=csection3.3533.62
All CSection /wp-admin/edit.php?post_type=csection3.4037.91
View Entries /wp-admin/edit.php?post_type=csection&page=appform3.3330.70
CS Categories /wp-admin/edit-tags.php?taxonomy=csection_cat&post_type=csection3.3533.24
Add New /wp-admin/post-new.php?post_type=csection3.5050.69

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables
wp_cs_applicant_submissions
New WordPress options
csaf_jal_db_version
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Career Section
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,008 ▲26113.91 ▼0.4410.78 ▲9.0846.31 ▲3.83
Dashboard /wp-admin2,295 ▲1185.56 ▼0.1289.61 ▲3.9846.64 ▲3.82
Posts /wp-admin/edit.php2,142 ▲421.97 ▼0.0535.28 ▼5.8630.63 ▼6.18
Add New Post /wp-admin/post-new.php1,563 ▲3723.06 ▼0.38680.99 ▲24.2151.82 ▲1.40
Media Library /wp-admin/upload.php1,436 ▲334.18 ▲0.0197.83 ▼8.7041.55 ▼0.72
CS Tags /wp-admin/edit-tags.php?taxonomy=cs_tag&post_type=csection1,2852.1225.1829.18
All CSection /wp-admin/edit.php?post_type=csection1,1671.9732.7127.48
View Entries /wp-admin/edit.php?post_type=csection&page=appform1,0102.0326.3032.79
CS Categories /wp-admin/edit-tags.php?taxonomy=csection_cat&post_type=csection1,3132.1225.6330.87
Add New /wp-admin/post-new.php?post_type=csection2,8087.74175.1064.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 tables detected upon uninstall: 1 table
    • wp_cs_applicant_submissions
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • csaf_jal_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/career-section/include/top_level_menu.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/career-section/include/dashboard_widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/career-section/include/enqueue.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/career-section/include/posttype.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/career-section/index.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/career-section/templates/single-csection.php:1

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 90% 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: install and send your cv

career-section/index.php 77% from 13 tests

"Career Section" version 1.02's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("career-section.php" instead of "index.php")
  • Domain Path: The domain path is invalid: folder "/lang" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin16,565 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS479536715,690
PHP65349736
JavaScript22632139

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin