84% seo-images-reloaded

Code Review | SEO Images Reloaded

WordPress plugin SEO Images Reloaded scored84%from 54 tests.

About plugin

  • Plugin page: seo-images-reloaded
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 24, 2019
  • Latest release: Aug 24, 2019
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: lerougeliet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.32MB] [CPU: ▼13.50ms] Passed 4 tests

Server-side resources used by SEO Images Reloaded
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0334.09 ▼5.11
Dashboard /wp-admin3.32 ▲0.0248.11 ▼1.12
Posts /wp-admin/edit.php3.37 ▲0.0145.82 ▼0.31
Add New Post /wp-admin/post-new.php4.61 ▼1.2841.75 ▼46.33
Media Library /wp-admin/upload.php3.24 ▲0.0134.19 ▼1.44
SEO Images /wp-admin/options-general.php?page=seo-images-reloaded3.2731.36

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
seo_images_reloaded_options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for SEO Images Reloaded
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.82 ▲0.461.69 ▼0.1045.36 ▲1.32
Dashboard /wp-admin2,215 ▲275.89 ▲1.01101.08 ▼13.9643.64 ▲0.89
Posts /wp-admin/edit.php2,095 ▲62.01 ▲0.0232.76 ▼4.3332.98 ▼3.29
Add New Post /wp-admin/post-new.php1,533 ▼023.03 ▼0.11667.11 ▼6.3951.04 ▼11.16
Media Library /wp-admin/upload.php1,394 ▲64.28 ▲0.1494.39 ▼13.2442.04 ▼3.13
SEO Images /wp-admin/options-general.php?page=seo-images-reloaded9642.0523.2426.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • seo_images_reloaded_options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-images-reloaded/admin/partials/form.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: seo, pictures, images, photos

seo-images-reloaded/seo-images-reloaded.php 92% from 13 tests

"SEO Images Reloaded" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected602 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP115911368
PO File397340234

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.88
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrows.png0.48KB0.24KB▼ 50.81%
images/icon.png1.50KB0.76KB▼ 49.22%
images/logo.png2.66KB1.51KB▼ 43.40%