89% prostudio-auto-meta-images

Code Review | Prostudio Auto Meta Images

WordPress plugin Prostudio Auto Meta Images scored89%from 54 tests.

About plugin

  • Plugin page: prostudio-auto-me...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.4
  • WordPress version: 6.3.1
  • First release: Jul 28, 2020
  • Latest release: Aug 17, 2020
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: vsexmogushiy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /1,325 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.01MB] [CPU: ▼12.08ms] Passed 4 tests

An overview of server-side resources used by Prostudio Auto Meta Images
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.14 ▼9.11
Dashboard /wp-admin3.31 ▲0.0144.28 ▼10.47
Posts /wp-admin/edit.php3.36 ▲0.0146.01 ▼4.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.17 ▼24.09
Media Library /wp-admin/upload.php3.24 ▲0.0134.99 ▲2.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Prostudio Auto Meta Images
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.101.63 ▼0.0442.52 ▼2.07
Dashboard /wp-admin2,209 ▲245.88 ▼0.1797.81 ▼17.4238.24 ▼9.32
Posts /wp-admin/edit.php2,089 ▲212.06 ▲0.0339.66 ▲0.6835.17 ▼0.54
Add New Post /wp-admin/post-new.php1,547 ▲2818.59 ▼4.85601.37 ▼31.6667.01 ▲15.36
Media Library /wp-admin/upload.php1,385 ▼34.23 ▼0.0493.32 ▼3.0842.71 ▼1.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: alt, title, seo, image, meta...

prostudio-auto-meta-images/prostudio-auto meta-images.php 85% from 13 tests

"Prostudio Auto Meta Images" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 297 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("prostudio-auto-meta-images.php" instead of "prostudio-auto meta-images.php")

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
Everything looks great! No dangerous files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1181529

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions2
▷ Named functions2100.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
No PNG files were detected