84% virgool

Code Review | Virgool

WordPress plugin Virgool scored 84% from 54 tests.

About plugin

  • Plugin page: virgool
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2019
  • Latest release: Jul 10, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: nekofar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.53ms] Passed 4 tests

Server-side resources used by Virgool
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.47 ▼1.45
Dashboard /wp-admin3.42 ▲0.1147.28 ▼1.86
Posts /wp-admin/edit.php3.53 ▲0.1843.91 ▼7.86
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.13 ▼14.94
Media Library /wp-admin/upload.php3.34 ▲0.1135.40 ▲3.06
Virgool /wp-admin/options-general.php?page=virgool3.3132.48

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Virgool
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.28 ▼1.361.81 ▼0.0639.39 ▼1.63
Dashboard /wp-admin2,210 ▲225.80 ▼0.1094.99 ▼17.0841.38 ▼0.12
Posts /wp-admin/edit.php2,100 ▲111.99 ▼0.0133.99 ▼6.5633.26 ▼2.82
Add New Post /wp-admin/post-new.php1,540 ▲1218.46 ▲0.32597.12 ▼8.4551.58 ▼0.76
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0194.65 ▼0.0641.45 ▼3.27
Virgool /wp-admin/options-general.php?page=virgool8642.0422.2627.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/virgool/admin/partials/virgool-admin-settings.php:16

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: virgool, publish, persian

virgool/virgool.php Passed 13 tests

The main PHP script in "Virgool" version 1.0.0 is automatically included on every request by WordPress
66 characters long description:
Virgool lets you publish posts automatically to a Virgool profile.

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
Success! There were no dangerous files found in this plugin528 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8160534528

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.80
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin