10% magic-seo-image-for-nextgen

Code Review | Magic SEO Image For NextGen

WordPress plugin Magic SEO Image For NextGen scored10%from 54 tests.

About plugin

  • Plugin page: magic-seo-image-f...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Sep 13, 2015
  • Number of updates: 16
  • Update frequency: every 0.4 days
  • Top authors: aminmazrouei (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,108 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/magic-seo-image-for-nextgen/PictureListTable.php+2
    session_start(): A session had already been started - ignoring

Server metrics [RAM: ▼1.84MB] [CPU: ▼56.75ms] Passed 4 tests

Analyzing server-side resources used by Magic SEO Image For NextGen
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.04 ▲0.35
Dashboard /wp-admin2.11 ▼1.238.08 ▼58.08
Posts /wp-admin/edit.php2.11 ▼1.245.34 ▼44.26
Add New Post /wp-admin/post-new.php2.11 ▼3.775.69 ▼97.43
Media Library /wp-admin/upload.php2.11 ▼1.117.22 ▼27.22

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Magic SEO Image For NextGen
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.24 ▼1.012.01 ▲0.3643.40 ▲0.73
Dashboard /wp-admin2,224 ▲364.96 ▼0.9496.04 ▼13.8175.27 ▲35.99
Posts /wp-admin/edit.php2,107 ▲151.98 ▼0.1934.77 ▼2.6431.52 ▼2.59
Add New Post /wp-admin/post-new.php1,536 ▼623.09 ▲4.83773.34 ▲128.0358.18 ▲8.74
Media Library /wp-admin/upload.php1,406 ▲184.15 ▼0.07102.44 ▲3.6384.04 ▲39.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/magic-seo-image-for-nextgen/PictureListTable.php+2
    session_start(): A session had already been started - ignoring
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/magic-seo-image-for-nextgen/magic-seo-image-for-nextgen.php
    • > /wp-content/plugins/magic-seo-image-for-nextgen/Repo.php
    • > /wp-content/plugins/magic-seo-image-for-nextgen/OptionPage.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/magic-seo-image-for-nextgen/PictureListTable.php on line 5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/magic-seo-image-for-nextgen/PictureListTable.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/magic-seo-image-for-nextgen/PictureListTable.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Invalid URI found ("")
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === magic-seo-image-for-nextgen === )
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

magic-seo-image-for-nextgen/magic-seo-image-for-nextgen.php 92% from 13 tests

The main PHP script in "Magic SEO Image For NextGen" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected675 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP4204112460
CSS27583
PO File1283767
JavaScript5251265

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.00
▷ Minimum class complexity2.00
▷ Maximum class complexity41.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods12.70%
▷ Public methods3697.30%
▷ Protected methods12.70%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 images were found in this plugin