Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼1.43ms] Passed 4 tests
A check of server-side resources used by Name Directory
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 41.67 ▼2.89 |
Dashboard /wp-admin | 3.73 ▲0.42 | 47.07 ▼2.93 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 49.48 ▲2.40 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 83.11 ▼2.28 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 39.37 ▲6.38 |
Quick import /wp-admin/admin.php?page=name-directory&sub=quick-import | 3.62 | 34.15 |
Add directory /wp-admin/admin.php?page=name-directory&sub=new-directory | 3.62 | 31.30 |
General settings /wp-admin/admin.php?page=name-directory-general-settings | 3.62 | 31.42 |
Name Directory /wp-admin/admin.php?page=name-directory | 3.62 | 35.77 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_name_directory |
wp_name_directory_name |
New WordPress options |
---|
name_directory_db_version |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Name Directory
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲72 | 14.72 ▲0.49 | 1.73 ▲0.15 | 43.96 ▼1.58 |
Dashboard /wp-admin | 2,234 ▲62 | 5.59 ▼0.10 | 91.02 ▼13.91 | 38.60 ▼5.49 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.00 ▲0.04 | 36.24 ▼1.83 | 33.87 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.49 ▲0.41 | 680.09 ▼21.28 | 57.81 ▲0.92 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.24 ▲0.05 | 100.08 ▼10.19 | 43.34 ▼4.89 |
Quick import /wp-admin/admin.php?page=name-directory&sub=quick-import | 843 | 2.18 | 25.17 | 27.03 |
Add directory /wp-admin/admin.php?page=name-directory&sub=new-directory | 1,424 | 1.69 | 24.51 | 39.88 |
General settings /wp-admin/admin.php?page=name-directory-general-settings | 1,087 | 2.05 | 32.50 | 44.34 |
Name Directory /wp-admin/admin.php?page=name-directory | 940 | 2.02 | 25.67 | 24.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_name_directory_name
- wp_name_directory
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- name_directory_db_version
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/name-directory/database.php
- > /wp-content/plugins/name-directory/index.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/name-directory/admin_general_settings.php:352
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/name-directory/shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/name-directory/admin.php:3
- > 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 errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Plugin Name: Please specify the plugin name on the first line (
=== name-directory ===
)
name-directory/index.php 85% from 13 tests
Analyzing the main PHP file in "Name Directory" version 1.28.5
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/translation" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("name-directory.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,760 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 432 | 310 | 2,463 |
CSS | 2 | 29 | 13 | 155 |
JavaScript | 1 | 31 | 21 | 142 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 47 | 97.92% |
▷ Anonymous functions | 1 | 2.08% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin