57% mass-ping-tool-for-seo

Code Review | Mass Ping Tool for SEO – Wordpress ping list to get indexed faster on Google, Yandex, …

WordPress plugin Mass Ping Tool for SEO – Wordpress ping list to get indexed faster on Google, Yandex, … scored 57% from 54 tests.

About plugin

  • Plugin page: mass-ping-tool-fo...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 14, 2022
  • Latest release: Aug 24, 2023
  • Number of updates: 9
  • Update frequency: every 48.4 days
  • Top authors: pagup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 3,152 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲5.10MB] [CPU: ▲26.20ms] 75% from 4 tests

A check of server-side resources used by Mass Ping Tool for SEO – Wordpress ping list to get indexed faster on Google, Yandex, …
Please fix the following
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.10MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.97 ▲5.5167.24 ▲29.52
Dashboard /wp-admin8.99 ▲5.6874.55 ▲31.59
Posts /wp-admin/edit.php8.99 ▲5.6383.11 ▲31.39
Add New Post /wp-admin/post-new.php9.48 ▲3.58120.46 ▲12.30
Media Library /wp-admin/upload.php8.99 ▲5.7671.56 ▲37.16
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius8.9965.44

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 215 new files
Database: 1 new table, 13 new options
New tables
wp_mass_ping_log
New WordPress options
mass-ping-tool-for-seo
mpt-ping-services
fs_accounts
db_upgraded
widget_recent-posts
fs_active_plugins
can_compress_scripts
fs_debug_mode
theysaidso_admin_options
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Mass Ping Tool for SEO – Wordpress ping list to get indexed faster on Google, Yandex, …: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8713.70 ▼0.681.71 ▼0.4427.75 ▼19.22
Dashboard /wp-admin2,247 ▲595.85 ▼0.05106.70 ▼4.4847.95 ▲4.41
Posts /wp-admin/edit.php2,133 ▲412.02 ▲0.0238.44 ▼3.3740.39 ▲4.50
Add New Post /wp-admin/post-new.php1,529 ▼1321.02 ▲2.67660.02 ▲51.8362.64 ▲6.16
Media Library /wp-admin/upload.php1,426 ▲414.32 ▲0.0896.62 ▼7.4843.29 ▼1.86
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1041.9026.3629.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/mass-ping-tool-for-seo/vendor/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_mass_ping_log
  • The uninstall procedure has failed, leaving 13 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • fs_active_plugins
    • mpt-ping-services
    • db_upgraded
    • mass-ping-tool-for-seo
    • mpt-last-update
    • fs_accounts
    • mpt_db_version
    • widget_theysaidso_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mass-ping-tool-for-seo/admin/views/metabox.view.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/mass-ping-tool-for-seo/admin/views/inc/top.view.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/mass-ping-tool-for-seo/admin/views/inc/top.view.php:5
    • > PHP Fatal error
      Trait 'Pagup\\MassPingTool\\Traits\\Helpers' not found in wp-content/plugins/mass-ping-tool-for-seo/admin/controllers/SettingsController.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'Pagup\\MassPingTool\\Controllers\\SettingsController' not found in wp-content/plugins/mass-ping-tool-for-seo/admin/Settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/mass-ping-tool-for-seo/admin/views/log.view.php:3
    • > PHP Fatal error
      Trait 'Pagup\\MassPingTool\\Traits\\Helpers' not found in wp-content/plugins/mass-ping-tool-for-seo/admin/controllers/PingController.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/mass-ping-tool-for-seo/admin/views/inc/top.view.php:5
    • > PHP Fatal error
      Trait 'Pagup\\MassPingTool\\Traits\\Helpers' not found in wp-content/plugins/mass-ping-tool-for-seo/admin/controllers/MetaboxController.php on line 8
    • > PHP Warning
      Use of undefined constant MPT_LOG_TABLE - assumed 'MPT_LOG_TABLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/mass-ping-tool-for-seo/admin/controllers/DBController.php on line 69

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #2 (Mass Ping Tool for SEO) image required
You can take inspiration from this readme.txt

mass-ping-tool-for-seo/mass-ping-tool-for-seo.php 92% from 13 tests

"Mass Ping Tool for SEO – Wordpress ping list to get indexed faster on Google, Yandex, …" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin36,216 lines of code in 169 files:
LanguageFilesBlank linesComment linesLines of code
PHP1468,53017,96935,472
CSS153736421
JavaScript44259214
JSON30091
Markdown15018

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity73.34
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.47
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces6
Interfaces0
Traits1
Classes63
▷ Abstract classes23.17%
▷ Concrete classes6196.83%
▷ Final classes00.00%
Methods1,365
▷ Static methods24417.88%
▷ Public methods96770.84%
▷ Protected methods231.68%
▷ Private methods37527.47%
Functions106
▷ Named functions10397.17%
▷ Anonymous functions32.83%
Constants160
▷ Global constants10263.75%
▷ Class constants5836.25%
▷ Public constants58100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
vendor/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%