84% faculty-cpt

Code Review | Faculty CPT Wordpress Plugin

WordPress plugin Faculty CPT Wordpress Plugin scored84%from 54 tests.

About plugin

  • Plugin page: faculty-cpt
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Jul 3, 2019
  • Latest release: Oct 17, 2022
  • Number of updates: 4
  • Update frequency: every 308.3 days
  • Top authors: hdkothari81 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.81ms] Passed 4 tests

Server-side resources used by Faculty CPT Wordpress Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.97 ▲3.59
Dashboard /wp-admin3.39 ▲0.0948.80 ▼7.83
Posts /wp-admin/edit.php3.51 ▲0.1553.37 ▲2.80
Add New Post /wp-admin/post-new.php5.97 ▲0.08102.10 ▲0.33
Media Library /wp-admin/upload.php3.32 ▲0.0837.59 ▲1.45
Add New /wp-admin/post-new.php?post_type=teacher3.4653.38
All Persons /wp-admin/edit.php?post_type=teacher3.3640.54

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_faculty_cw
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Faculty CPT Wordpress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.28 ▼0.031.94 ▲0.2541.58 ▼0.59
Dashboard /wp-admin2,222 ▲425.69 ▲0.01104.66 ▲16.4245.92 ▲1.40
Posts /wp-admin/edit.php2,127 ▲241.98 ▼0.0638.92 ▼3.3034.89 ▼5.97
Add New Post /wp-admin/post-new.php1,568 ▲2823.24 ▲4.98666.11 ▲30.4856.55 ▼6.02
Media Library /wp-admin/upload.php1,430 ▲304.26 ▲0.06101.44 ▼0.4947.13 ▲1.90
Add New /wp-admin/post-new.php?post_type=teacher2,7267.88189.3871.76
All Persons /wp-admin/edit.php?post_type=teacher1,1511.9530.8331.71

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_faculty_cw
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/faculty-cpt/faculty-cpt.php:12

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (The WordPress setting panel with new Setting "Person CPT"), #2 (Editor page for adding a new person)
Please take inspiration from this readme.txt

faculty-cpt/faculty-cpt.php Passed 13 tests

"Faculty CPT Wordpress Plugin" version 0.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
120 characters long description:
This plugin is used to create the Custom post type for Person also you can add the details of Person through meta boxes.

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
There were no executable files found in this plugin395 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP65451284
CSS111111

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity5.20
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin