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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.97 ▲3.59 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.80 ▼7.83 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 53.37 ▲2.80 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 102.10 ▲0.33 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 37.59 ▲1.45 |
Add New /wp-admin/post-new.php?post_type=teacher | 3.46 | 53.38 |
All Persons /wp-admin/edit.php?post_type=teacher | 3.36 | 40.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.28 ▼0.03 | 1.94 ▲0.25 | 41.58 ▼0.59 |
Dashboard /wp-admin | 2,222 ▲42 | 5.69 ▲0.01 | 104.66 ▲16.42 | 45.92 ▲1.40 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.98 ▼0.06 | 38.92 ▼3.30 | 34.89 ▼5.97 |
Add New Post /wp-admin/post-new.php | 1,568 ▲28 | 23.24 ▲4.98 | 666.11 ▲30.48 | 56.55 ▼6.02 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.26 ▲0.06 | 101.44 ▼0.49 | 47.13 ▲1.90 |
Add New /wp-admin/post-new.php?post_type=teacher | 2,726 | 7.88 | 189.38 | 71.76 |
All Persons /wp-admin/edit.php?post_type=teacher | 1,151 | 1.95 | 30.83 | 31.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 54 | 51 | 284 |
CSS | 1 | 1 | 1 | 111 |
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 code | 0.31 |
Average class complexity | 5.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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