Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▼1.32ms] Passed 4 tests
An overview of server-side resources used by Faculty Staff and Student Directory Plugin - Campus Directory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 50.81 ▲6.97 |
Dashboard /wp-admin | 4.02 ▲0.72 | 86.86 ▲36.12 |
Posts /wp-admin/edit.php | 4.07 ▲0.72 | 56.28 ▲8.13 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.67 | 94.16 ▼26.59 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 44.63 ▲6.20 |
Academic Areas /wp-admin/edit-tags.php?taxonomy=person_area&post_type=emd_person | 4.01 | 44.65 |
Forms /wp-admin/admin.php?page=campus_directory_forms | 3.85 | 46.98 |
Getting Started /wp-admin/admin.php?page=campus_directory | 3.85 | 42.04 |
CSV Import/Export /wp-admin/admin.php?page=operations_emd_person | 3.83 | 43.77 |
Support /wp-admin/admin.php?page=campus_directory_support | 3.89 | 40.83 |
Plugins /wp-admin/admin.php?page=campus_directory_store | 3.90 | 42.07 |
Titles /wp-admin/edit-tags.php?taxonomy=person_title&post_type=emd_person | 3.86 | 50.68 |
Settings /wp-admin/admin.php?page=campus_directory_settings | 3.88 | 47.84 |
Glossary /wp-admin/admin.php?page=campus_directory_glossary | 3.83 | 40.97 |
Custom Fields /wp-admin/admin.php?page=campus_directory_cust_fields | 3.83 | 41.34 |
Server storage [IO: ▲4.24MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 337 new files
Database: 3 new tables, 23 new options
New tables |
---|
wp_p2pmeta |
wp_emd_sessions |
wp_p2p |
New WordPress options |
---|
campus_directory_glob_init_list |
campus_directory_rel_list |
campus_directory_setup_pages |
campus_directory_shc_list |
campus_directory_tax_list |
emd_activated_plugins |
campus_directory_attr_list |
widget_theysaidso_widget |
campus_directory_version |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Faculty Staff and Student Directory Plugin - Campus Directory
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲248 | 14.36 ▼0.01 | 2.13 ▲0.45 | 41.81 ▼2.31 |
Dashboard /wp-admin | 2,385 ▲207 | 5.60 ▼0.05 | 88.64 ▼16.70 | 51.84 ▲11.63 |
Posts /wp-admin/edit.php | 2,290 ▲190 | 2.01 ▲0.04 | 35.68 ▼1.18 | 38.42 ▲2.88 |
Add New Post /wp-admin/post-new.php | 1,763 ▲235 | 20.77 ▼2.44 | 602.36 ▼79.49 | 50.43 ▼12.35 |
Media Library /wp-admin/upload.php | 1,594 ▲197 | 4.39 ▲0.19 | 98.99 ▼4.78 | 47.47 ▲3.56 |
Academic Areas /wp-admin/edit-tags.php?taxonomy=person_area&post_type=emd_person | 1,436 | 2.30 | 29.95 | 38.38 |
Forms /wp-admin/admin.php?page=campus_directory_forms | 1,152 | 1.97 | 37.49 | 34.19 |
Getting Started /wp-admin/admin.php?page=campus_directory | 2,509 | 2.38 | 34.93 | 124.17 |
CSV Import/Export /wp-admin/admin.php?page=operations_emd_person | 1,049 | 1.67 | 22.74 | 39.68 |
Support /wp-admin/admin.php?page=campus_directory_support | 1,293 | 1.79 | 24.79 | 47.59 |
Plugins /wp-admin/admin.php?page=campus_directory_store | 1,318 | 1.78 | 27.82 | 38.33 |
Titles /wp-admin/edit-tags.php?taxonomy=person_title&post_type=emd_person | 1,439 | 2.30 | 29.54 | 42.08 |
Settings /wp-admin/admin.php?page=campus_directory_settings | 2,411 | 2.67 | 36.94 | 37.93 |
Glossary /wp-admin/admin.php?page=campus_directory_glossary | 1,276 | 1.87 | 23.56 | 37.25 |
Custom Fields /wp-admin/admin.php?page=campus_directory_cust_fields | 1,068 | 1.65 | 22.37 | 39.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_p2p
- wp_p2pmeta
- wp_emd_sessions
- This plugin does not fully uninstall, leaving 20 options in the database
- campus_directory_activation_date
- can_compress_scripts
- db_upgraded
- campus_directory_glob_forms_list
- emd_form_id_people_search
- campus_directory_cust_roles
- campus_directory_attr_list
- theysaidso_admin_options
- campus_directory_glob_init_list
- campus_directory_add_caps
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/campus-directory/layouts/shc-people-grid-footer.php
- > /wp-content/plugins/campus-directory/layouts/shc-people-grid-header.php
- > /wp-content/plugins/campus-directory/layouts/shc-search-people-footer.php
- 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/campus-directory/layouts/single-emd-person.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'scbWidget' not found in wp-content/plugins/campus-directory/assets/ext/posts-to-posts/core/extra.php:3
- > PHP Notice
Undefined variable: post in wp-content/plugins/campus-directory/layouts/shc-people-grid-content.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/campus-directory/assets/ext/posts-to-posts/scb/BoxesPage.php:5
- > PHP Fatal error
Uncaught Error: Class 'Recursive_ArrayAccess' not found in wp-content/plugins/campus-directory/assets/ext/emd-session/includes/class-emd-wp-session.php:9
- > PHP Fatal error
Uncaught Error: Class 'P2P_Directed_Connection_Type' not found in wp-content/plugins/campus-directory/assets/ext/posts-to-posts/core/indeterminate-type.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/campus-directory/layouts/archive-emd-person.php:2
- > PHP Notice
Undefined variable: post in wp-content/plugins/campus-directory/layouts/taxonomy-person-location-emd-person.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/campus-directory/layouts/shc-search-people-content.php:2
- > PHP Warning
Use of undefined constant CAMPUS_DIRECTORY_PLUGIN_URL - assumed 'CAMPUS_DIRECTORY_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/campus-directory/includes/admin/tabs.php on line 47
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 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: faculty, student, higher education, faculty directory, staff directory
campus-directory/campus-directory.php Passed 13 tests
Analyzing the main PHP file in "Faculty Staff and Student Directory Plugin - Campus Directory" version 1.7.7
53 characters long description:
Integrated information repository for academic people
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin35,509 lines of code in 243 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 141 | 2,383 | 4,528 | 24,373 |
JavaScript | 49 | 489 | 701 | 5,756 |
SVG | 2 | 0 | 0 | 2,673 |
CSS | 42 | 160 | 133 | 2,633 |
HTML | 9 | 6 | 0 | 74 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 14.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 118 | |
▷ Abstract classes | 11 | 9.32% |
▷ Concrete classes | 107 | 90.68% |
▷ Final classes | 2 | 1.87% |
Methods | 743 | |
▷ Static methods | 297 | 39.97% |
▷ Public methods | 620 | 83.45% |
▷ Protected methods | 88 | 11.84% |
▷ Private methods | 35 | 4.71% |
Functions | 250 | |
▷ Named functions | 250 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 31 | |
▷ Global constants | 20 | 64.52% |
▷ Class constants | 11 | 35.48% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
68 compressed PNG files occupy 0.72MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/ext/emd-meta-box/css/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/img/venues.png | 5.69KB | 5.89KB | 0.00% |
assets/img/jui-img/ui-bg_glass_95_fef1ec_1x400.png | 0.11KB | 0.14KB | 0.00% |
assets/img/vcard.png | 3.95KB | 4.08KB | 0.00% |
assets/ext/emd-meta-box/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |