94% phpmydirectory

Code Review | phpMyDirectory

WordPress plugin phpMyDirectory scored 94% from 54 tests.

About plugin

  • Plugin page: phpmydirectory
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.4.1
  • WordPress version: 5.8.1
  • First release: Jun 27, 2013
  • Latest release: Jan 13, 2016
  • Number of updates: 5
  • Update frequency: every 186.2 days
  • Top authors: atdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,055 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1238.65 ▲9.88
Dashboard /wp-admin3.06 ▲0.0147.78 ▼0.53
Posts /wp-admin/edit.php3.11 ▲0.0148.02 ▼0.21
Add New Post /wp-admin/post-new.php5.43 ▼0.0095.30 ▼549.22
Media Library /wp-admin/upload.php3.01 ▲0.0033.61 ▼1.59
phpMyDirectory /wp-admin/options-general.php?page=phpmydirectory-settings2.9829.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11316.26 ▲0.419.43 ▲0.2354.07 ▲1.95
Dashboard /wp-admin2,972 ▲415.88 ▼0.05150.84 ▲5.84109.50 ▼7.73
Posts /wp-admin/edit.php2,744 ▲52.82 ▲0.0266.64 ▼0.5991.09 ▲1.22
Add New Post /wp-admin/post-new.php1,686 ▲7118.74 ▼2.11382.76 ▲105.84106.77 ▼7.55
Media Library /wp-admin/upload.php1,815 ▲85.07 ▲0.06155.62 ▼9.64127.25 ▲1.27
phpMyDirectory /wp-admin/options-general.php?page=phpmydirectory-settings1,0542.2155.9364.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1163262

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 code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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