42% webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts

Code Review | Webmaster.Net SEO Post Quality Analyzer - Quickly Find Low Quality Posts

WordPress plugin Webmaster.Net SEO Post Quality Analyzer - Quickly Find Low Quality Posts scored42%from 54 tests.

About plugin

  • Plugin page: webmasternet-seo-...
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2014
  • Latest release: Jan 31, 2015
  • Number of updates: 7
  • Update frequency: every 50.0 days
  • Top authors: sOliver (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,816 total downloads

Benchmarks

Plugin footprint 30% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.62ms] Passed 4 tests

This is a short check of server-side resources used by Webmaster.Net SEO Post Quality Analyzer - Quickly Find Low Quality Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.14 ▼2.61
Dashboard /wp-admin3.34 ▼0.0152.35 ▼11.95
Posts /wp-admin/edit.php3.39 ▲0.0349.67 ▼2.09
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.54 ▼13.82
Media Library /wp-admin/upload.php3.26 ▲0.0339.09 ▲1.33
Settings /wp-admin/admin.php?page=gps-settings3.2433.23
Webmaster.Net Post Analyzer /wp-admin/admin.php?page=panalyzer_main_menu3.2931.30
Post CSV /wp-admin/admin.php?page=gps-csv3.2230.03
Training Session /wp-admin/admin.php?page=gps-training3.2340.50

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables
wp_post_analyzer
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Webmaster.Net SEO Post Quality Analyzer - Quickly Find Low Quality Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.72 ▲0.161.79 ▼0.0745.84 ▼3.33
Dashboard /wp-admin2,229 ▲525.61 ▼0.0583.63 ▼17.5164.76 ▲21.52
Posts /wp-admin/edit.php2,134 ▲341.99 ▼0.0435.55 ▼4.3736.79 ▲0.44
Add New Post /wp-admin/post-new.php1,570 ▲4422.96 ▼0.16690.76 ▲14.5350.40 ▼3.79
Media Library /wp-admin/upload.php1,437 ▲374.22 ▲0.0796.77 ▼14.6476.34 ▲29.55
Settings /wp-admin/admin.php?page=gps-settings1,1192.0123.9440.60
Webmaster.Net Post Analyzer /wp-admin/admin.php?page=panalyzer_main_menu9152.0128.2330.58
Post CSV /wp-admin/admin.php?page=gps-csv8352.0023.9525.99
Training Session /wp-admin/admin.php?page=gps-training8381.9823.5527.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Error in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/plugin.php+59
    Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/plugin.php:59
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): deactivate_post_analyzer()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(816): do_action()
  • The plugin did not uninstall successfully, leaving 14 files (0.10MB) in the plugin directory
    • (new file) plugin.php
    • (new file) css/mystyle.css
    • (new file) csv/.empty
    • (new file) screenshot-1.png
    • (new file) screenshot-2.png
    • (new file) images/ui-icons_888888_256x240.png
    • (new file) images/icon.png
    • (new file) images/_icon.png
    • (new file) readme.txt
    • (new file) inc/custom-meta-configuration.php
    • ...
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_post_analyzer
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gps-settings
    • > Notice in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/inc/custom-meta-configuration.php+159
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=panalyzer_main_menu
    • > Notice in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/views/admin-page.php+17
    Undefined index: order
    • > GET request to /wp-admin/admin.php?page=panalyzer_main_menu
    • > Notice in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/views/admin-page.php+19
    Undefined index: sort
    • > GET request to /wp-admin/admin.php?page=panalyzer_main_menu
    • > Notice in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/views/admin-page.php+145
    Undefined index: paged
    • > GET request to /wp-admin/admin.php?page=gps-csv
    • > Warning in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/views/csv.php+27
    opendir(wp-content/plugins/post-analyzer/csv/): failed to open dir: No such file or directory
    • > GET request to /wp-admin/admin.php?page=gps-csv
    • > Warning in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/views/csv.php+30
    readdir() expects parameter 1 to be resource, bool given
    • > GET request to /wp-admin/admin.php?page=gps-csv
    • > Warning in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/views/csv.php+39
    closedir() expects parameter 1 to be resource, bool given

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/views/training.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/inc/custom-meta-configuration.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/plugin.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/views/admin-page.php:125
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/views/csv.php:19

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=panalyzer_main_menu
    • > Network (severe)
    wp-admin/%3C?%20echo%20plugins_url()?%3E/post-analyzer/images/ui-icons_888888_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The Quality Assurance Review Panel), #2 (The Settings Panel, Customize Values)
The official readme.txt might help

webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Webmaster.Net SEO Post Quality Analyzer - Quickly Find Low Quality Posts" version 1.05
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("webmasternet-seo-post-quality-analyzer-quickly-find-low-quality-posts.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin620 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP539360587
CSS112133

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.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
5 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png19.24KB10.95KB▼ 43.07%
screenshot-1.png39.62KB19.60KB▼ 50.53%
images/_icon.png3.06KB2.20KB▼ 28.21%
images/icon.png1.93KB1.10KB▼ 43.07%
images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%