84% pindula-mini-profiles

Code Review | Pindula Mini Profiles

WordPress plugin Pindula Mini Profiles scored84%from 54 tests.

About plugin

  • Plugin page: pindula-mini-prof...
  • Plugin version: 2.52
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Mar 24, 2017
  • Latest release: Apr 10, 2018
  • Number of updates: 61
  • Update frequency: every 6.2 days
  • Top authors: techzim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /717 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▲0.42ms] Passed 4 tests

A check of server-side resources used by Pindula Mini Profiles
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3940.60 ▲2.48
Dashboard /wp-admin3.69 ▲0.3448.64 ▼10.86
Posts /wp-admin/edit.php3.74 ▲0.3848.31 ▲0.10
Add New Post /wp-admin/post-new.php6.39 ▲0.50357.97 ▲256.85
Media Library /wp-admin/upload.php3.55 ▲0.3244.61 ▲9.96
Pindula Mini Profiles /wp-admin/options-general.php?page=pindula-mini-profiles3.5032.13

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 138 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
recovery_mode_email_last_sent
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Pindula Mini Profiles
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.58 ▼0.802.26 ▲0.5044.35 ▲3.95
Dashboard /wp-admin2,209 ▲185.88 ▲0.96100.13 ▼8.3139.81 ▼3.18
Posts /wp-admin/edit.php2,095 ▲32.02 ▼0.0138.98 ▼2.6935.93 ▼0.23
Add New Post /wp-admin/post-new.php55 ▼1,4730.44 ▼22.500.11 ▼625.009.30 ▼47.44
Media Library /wp-admin/upload.php1,394 ▲64.20 ▼0.0198.12 ▲0.2964.96 ▲23.90
Pindula Mini Profiles /wp-admin/options-general.php?page=pindula-mini-profiles8082.0626.1024.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/pindula-mini-profiles/includes/guzzlehttp/vendor/guzzlehttp/psr7/src/FnStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/pindula-mini-profiles/includes/guzzlehttp/vendor/guzzlehttp/psr7/src/Stream.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/pindula-mini-profiles/includes/guzzlehttp/vendor/psr/http-message/src/ServerRequestInterface.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/pindula-mini-profiles/includes/guzzlehttp/vendor/guzzlehttp/psr7/src/NoSeekStream.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/pindula-mini-profiles/includes/guzzlehttp/vendor/guzzlehttp/psr7/src/Response.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/pindula-mini-profiles/includes/guzzlehttp/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/pindula-mini-profiles/includes/guzzlehttp/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/pindula-mini-profiles/includes/guzzlehttp/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/pindula-mini-profiles/includes/guzzlehttp/vendor/guzzlehttp/promises/src/AggregateException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/pindula-mini-profiles/includes/guzzlehttp/vendor/guzzlehttp/guzzle/src/Pool.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: widgets, pindula, wiki, profiles

pindula-mini-profiles/pindula-mini-profiles.php 92% from 13 tests

The main file in "Pindula Mini Profiles" v. 2.52 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 341 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected12,359 lines of code in 123 files:
LanguageFilesBlank linesComment linesLines of code
PHP1031,8315,2998,531
Markdown992403,119
JSON600385
JavaScript25365302
CSS21813
make1409

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity13.40
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces8
Interfaces14
Traits2
Classes70
▷ Abstract classes00.00%
▷ Concrete classes70100.00%
▷ Final classes710.00%
Methods671
▷ Static methods649.54%
▷ Public methods55081.97%
▷ Protected methods40.60%
▷ Private methods11717.44%
Functions146
▷ Named functions5940.41%
▷ Anonymous functions8759.59%
Constants49
▷ Global constants12.04%
▷ Class constants4897.96%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pindula_data_logo_105x20.png1.12KB0.71KB▼ 36.44%
images/pindula_data_logo_189x50.png2.23KB1.30KB▼ 41.61%
images/pindula_data_logo_310x70.png3.93KB2.27KB▼ 42.39%