74% vetrogram

Code Review | Vetrogram

WordPress plugin Vetrogram scored74%from 54 tests.

About plugin

  • Plugin page: vetrogram
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2016
  • Latest release: Oct 20, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: vetrotheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /648 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.01MB] [CPU: ▼43.50ms] Passed 4 tests

Analyzing server-side resources used by Vetrogram
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.97 ▼0.4914.32 ▼29.27
Dashboard /wp-admin3.01 ▼0.3016.81 ▼34.45
Posts /wp-admin/edit.php3.01 ▼0.3517.39 ▼33.64
Add New Post /wp-admin/post-new.php3.01 ▼2.8819.62 ▼76.65
Media Library /wp-admin/upload.php3.01 ▼0.2216.66 ▼18.89

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Vetrogram
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲21413.88 ▼0.505.52 ▲3.7838.87 ▼9.95
Dashboard /wp-admin2,242 ▲575.08 ▼0.78103.83 ▼2.9641.34 ▲1.81
Posts /wp-admin/edit.php2,133 ▲442.53 ▲0.5042.42 ▲6.8035.22 ▼2.05
Add New Post /wp-admin/post-new.php1,545 ▲2123.10 ▼0.13594.60 ▼97.8734.94 ▼29.00
Media Library /wp-admin/upload.php1,430 ▲484.52 ▲0.3197.72 ▼0.8441.92 ▼1.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vetrogram/vetrogram.php:19

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #7 (Shortcode Generator) image missing
  • Screenshots: Please a description for screenshot #4 in vetrogram/assets to your readme.txt
You can take inspiration from this readme.txt

vetrogram/vetrogram.php Passed 13 tests

The main PHP script in "Vetrogram" version 1.0.0 is automatically included on every request by WordPress
65 characters long description:
A plugin for presenting your latest instagram posts in Wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,164 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP3123222,012
CSS3410727
Sass208682
JavaScript69298534
PO File18796193
SVG10016

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin