78% seo-bulk-editor

Code Review | SEO Bulk Editor

WordPress plugin SEO Bulk Editor scored78%from 54 tests.

About plugin

  • Plugin page: seo-bulk-editor
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Jan 10, 2015
  • Latest release: Oct 2, 2015
  • Number of updates: 13
  • Update frequency: every 20.4 days
  • Top authors: nciphers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,282 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.23ms] Passed 4 tests

Analyzing server-side resources used by SEO Bulk Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.43 ▲3.28
Dashboard /wp-admin3.32 ▲0.0248.63 ▼9.87
Posts /wp-admin/edit.php3.38 ▲0.0248.86 ▼0.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.03 ▼5.66
Media Library /wp-admin/upload.php3.25 ▲0.0235.90 ▲3.25
SEO Bulk Title Editor /wp-admin/options-general.php?page=seo_bulk_editor_titles3.3941.84
SEO Bulk Description Editor /wp-admin/options-general.php?page=seo_bulk_editor_descriptions3.3936.29

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SEO Bulk Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.34 ▲0.141.63 ▼0.3640.26 ▼4.04
Dashboard /wp-admin2,203 ▲265.66 ▲0.0492.95 ▼7.5839.34 ▼12.85
Posts /wp-admin/edit.php2,111 ▲111.98 ▼0.0139.00 ▲1.0132.78 ▼5.22
Add New Post /wp-admin/post-new.php1,543 ▲1518.22 ▼4.99649.89 ▲27.1176.03 ▲22.83
Media Library /wp-admin/upload.php1,411 ▲114.26 ▲0.0799.72 ▼7.1046.48 ▲2.44
SEO Bulk Title Editor /wp-admin/options-general.php?page=seo_bulk_editor_titles1,1901.6624.5228.97
SEO Bulk Description Editor /wp-admin/options-general.php?page=seo_bulk_editor_descriptions1,2011.6627.2831.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-bulk-editor/class-seo-bulk-editor-title-list-table.php on line 9
    • > 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/seo-bulk-editor/class-seo-bulk-editor-title-list-table.php on line 9
    • > 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/seo-bulk-editor/class-seo-bulk-editor-description-list-table.php on line 9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-bulk-editor/class-seo-bulk-editor-description-list-table.php on line 9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-bulk-editor/class-seo-bulk-editor-description-list-table.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/seo-bulk-editor/seo-bulk-editor.php:95
    • > 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/seo-bulk-editor/class-seo-bulk-editor-description-list-table.php on line 9
    • > 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/seo-bulk-editor/class-seo-bulk-editor-title-list-table.php on line 9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/seo-bulk-editor/class-seo-bulk-editor-title-list-table.php on line 9
    • > 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/seo-bulk-editor/class-seo-bulk-editor-title-list-table.php on line 9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seo_bulk_editor_titles
    • > Javascript (warning) in unknown
    /wp-admin/options-general.php?page=seo_bulk_editor_titles 169 A parser-blocking, cross site (i.e. different eTLD+1) script, http://ketlabs.com/seobulk.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seo_bulk_editor_titles
    • > Javascript (warning) in unknown
    /wp-admin/options-general.php?page=seo_bulk_editor_titles 227 A parser-blocking, cross site (i.e. different eTLD+1) script, http://ketlabs.com/seobulk.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seo_bulk_editor_descriptions
    • > Javascript (warning) in unknown
    /wp-admin/options-general.php?page=seo_bulk_editor_descriptions 168 A parser-blocking, cross site (i.e. different eTLD+1) script, http://ketlabs.com/seobulk.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=seo_bulk_editor_descriptions
    • > Javascript (warning) in unknown
    /wp-admin/options-general.php?page=seo_bulk_editor_descriptions 226 A parser-blocking, cross site (i.e. different eTLD+1) script, http://ketlabs.com/seobulk.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Screenshot #3 (A listing of all Published Pages in the Bulk Title Editor) image missing
The official readme.txt is a good inspiration

seo-bulk-editor/seo-bulk-editor.php Passed 13 tests

The entry point to "SEO Bulk Editor" version 1.1.0 is a PHP file that has certain tags in its header comment area
86 characters long description:
View and edit All-in-One SEO Pack Titles on one page and Meta Descriptions on another.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin780 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP523435617
JavaScript1620148
CSS10015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity30.67
▷ Minimum class complexity4.00
▷ Maximum class complexity44.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png41.58KB17.52KB▼ 57.86%