84% seopic-intelligent-seo-images

Code Review | Seopic - Intelligent SEO images for WordPress

WordPress plugin Seopic - Intelligent SEO images for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: seopic-intelligen...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2023
  • Latest release: Feb 25, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: randbe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /121 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.38MB] [CPU: ▲0.57ms] Passed 4 tests

Server-side resources used by Seopic - Intelligent SEO images for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3943.61 ▲4.68
Dashboard /wp-admin3.72 ▲0.4246.30 ▲0.20
Posts /wp-admin/edit.php3.77 ▲0.4245.45 ▼4.97
Add New Post /wp-admin/post-new.php6.24 ▲0.3594.29 ▲2.36
Media Library /wp-admin/upload.php3.58 ▲0.3538.93 ▲6.90

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Seopic - Intelligent SEO images for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.19 ▼1.184.41 ▲2.5740.67 ▲0.82
Dashboard /wp-admin2,206 ▲185.84 ▲0.93104.26 ▼12.0538.42 ▼4.36
Posts /wp-admin/edit.php2,089 ▲112.00 ▼0.0235.62 ▼10.1733.12 ▼9.38
Add New Post /wp-admin/post-new.php1,522 ▼2023.09 ▲4.72660.70 ▲63.4152.94 ▲3.22
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0195.23 ▼21.7241.31 ▼5.33

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seopic-intelligent-seo-images/includes/clear-media.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/seopic-intelligent-seo-images/includes/featured-image.php:125
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seopic-intelligent-seo-images/includes/update-status.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/seopic-intelligent-seo-images/includes/post-content.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/seopic-intelligent-seo-images/includes/helpers.php:227
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seopic-intelligent-seo-images/includes/assets.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: search engine optimisation, image renaming, file names optimisation, media seo, gallery images renaming...

seopic-intelligent-seo-images/seopic.php 85% from 13 tests

The entry point to "Seopic - Intelligent SEO images for WordPress" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("seopic-intelligent-seo-images.php" instead of "seopic.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin2,601 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP94755372,401
JavaScript1190163
CSS15037

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity193.50
▷ Minimum class complexity138.00
▷ Maximum class complexity249.00
Average method complexity5.28
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods90
▷ Static methods11.11%
▷ Public methods7583.33%
▷ Protected methods1516.67%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.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
No PNG images were found in this plugin