84% pathpic

Code Review | Pathpic

WordPress plugin Pathpic scored84%from 54 tests.

About plugin

  • Plugin page: pathpic
  • Plugin version: 0.8.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Apr 28, 2015
  • Latest release: Apr 28, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: jlscwpplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /667 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.35MB] [CPU: ▲0.79ms] Passed 4 tests

This is a short check of server-side resources used by Pathpic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3846.66 ▲7.53
Dashboard /wp-admin3.69 ▲0.3949.72 ▼2.11
Posts /wp-admin/edit.php3.74 ▲0.3851.13 ▲1.52
Add New Post /wp-admin/post-new.php6.21 ▲0.3292.60 ▼3.78
Media Library /wp-admin/upload.php3.55 ▲0.3244.31 ▲8.43

Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Pathpic: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.80 ▼0.559.46 ▲7.7148.18 ▲5.04
Dashboard /wp-admin2,194 ▲175.54 ▼0.0790.78 ▼1.3937.79 ▼6.79
Posts /wp-admin/edit.php2,105 ▲52.03 ▲0.0335.53 ▼2.1633.82 ▲0.27
Add New Post /wp-admin/post-new.php1,530 ▼723.13 ▲4.96628.88 ▼30.3457.92 ▼9.55
Media Library /wp-admin/upload.php1,402 ▼14.20 ▲0.0394.86 ▼3.9939.92 ▼3.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 37× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include_once(Model/validaVertice.php): failed to open stream: No such file or directory in wp-content/plugins/pathpic/View/VistaGrafo.php on line 14
    • > PHP Warning
      include_once(): Failed opening 'Model/validaVertice.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pathpic/View/VistaGrafo.php on line 14
    • > PHP Warning
      include_once(Model/Graph.php): failed to open stream: No such file or directory in wp-content/plugins/pathpic/View/VistaGrafo.php on line 13
    • > PHP Warning
      include_once(Model/validaVertice.php): failed to open stream: No such file or directory in wp-content/plugins/pathpic/View/VistaGrafo.php on line 14
    • > PHP Warning
      include_once(): Failed opening 'View/ProxySalida.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pathpic/Controller/ControladorGrafo.php on line 15
    • > PHP Warning
      include_once(): Failed opening 'Model/validaVertice.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pathpic/View/VistaGrafo.php on line 14
    • > PHP Warning
      include_once(): Failed opening 'Model/Graph.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pathpic/View/VistaGrafo.php on line 13
    • > PHP Warning
      include_once(Model/Graph.php): failed to open stream: No such file or directory in wp-content/plugins/pathpic/View/VistaGrafo.php on line 13
    • > PHP Warning
      include_once(View/ProxySalida.php): failed to open stream: No such file or directory in wp-content/plugins/pathpic/Controller/ControladorGrafo.php on line 15
    • > PHP Warning
      include_once(): Failed opening 'Model/validaVertice.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pathpic/Controller/ControladorGrafo.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

pathpic/pathpic.php Passed 13 tests

The main PHP script in "Pathpic" version 0.8.3 is automatically included on every request by WordPress
115 characters long description:
Show path lists as an image or a tree of text representing the path hierarchies with a file system manager's style.

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
No dangerous file extensions were detected1,570 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP134646811,527
CSS13743

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity14.67
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes325.00%
▷ Concrete classes975.00%
▷ Final classes00.00%
Methods141
▷ Static methods00.00%
▷ Public methods141100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
43 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/expandidoW7.png0.16KB0.15KB▼ 4.27%
images/dirOpenNBJ.png0.84KB0.96KB0.00%
images/dirW7.png0.62KB0.71KB0.00%
images/expandidoEcJ.png0.16KB0.15KB▼ 4.27%
images/archTxtNB.png0.50KB0.46KB▼ 7.25%