Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼137.89ms] Passed 4 tests
Analyzing server-side resources used by phpMyDirectory
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.65 ▲9.88 |
Dashboard /wp-admin | 3.06 ▲0.01 | 47.78 ▼0.53 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 48.02 ▼0.21 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 95.30 ▼549.22 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 33.61 ▼1.59 |
phpMyDirectory /wp-admin/options-general.php?page=phpmydirectory-settings | 2.98 | 29.67 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for phpMyDirectory
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲113 | 16.26 ▲0.41 | 9.43 ▲0.23 | 54.07 ▲1.95 |
Dashboard /wp-admin | 2,972 ▲41 | 5.88 ▼0.05 | 150.84 ▲5.84 | 109.50 ▼7.73 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.82 ▲0.02 | 66.64 ▼0.59 | 91.09 ▲1.22 |
Add New Post /wp-admin/post-new.php | 1,686 ▲71 | 18.74 ▼2.11 | 382.76 ▲105.84 | 106.77 ▼7.55 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.07 ▲0.06 | 155.62 ▼9.64 | 127.25 ▲1.27 |
phpMyDirectory /wp-admin/options-general.php?page=phpmydirectory-settings | 1,054 | 2.21 | 55.93 | 64.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/phpmydirectory/phpmydirectory.php:29
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: directory, login, session, authentication
phpmydirectory/phpmydirectory.php 92% from 13 tests
The main PHP script in "phpMyDirectory" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin62 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 32 | 62 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin