83% template-seo-checker

Code Review | Template SEO Checker

WordPress plugin Template SEO Checker scored83%from 54 tests.

About plugin

  • Plugin page: template-seo-checker
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 25, 2014
  • Latest release: May 2, 2014
  • Number of updates: 20
  • Update frequency: every 0.4 days
  • Top authors: funlove (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,709 total downloads

Benchmarks

Plugin footprint 83% 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.47MB] [CPU: ▲0.80ms] Passed 4 tests

A check of server-side resources used by Template SEO Checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2044.47 ▲3.26
Dashboard /wp-admin3.90 ▲0.6054.59 ▲5.79
Posts /wp-admin/edit.php3.95 ▲0.6050.79 ▲3.54
Add New Post /wp-admin/post-new.php6.42 ▲0.5387.62 ▼9.07
Media Library /wp-admin/upload.php3.76 ▲0.5340.69 ▲5.47

Server storage [IO: ▲0.68MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 36 new files
Database: 3 new tables, 7 new options
New tables
tsc_errors
tsc_urls_parsed
tsc_url_errors
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
jja_tsc_version
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Template SEO Checker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5913.14 ▼1.241.69 ▼0.2844.68 ▼6.28
Dashboard /wp-admin2,222 ▲344.86 ▼1.20110.42 ▲3.4442.26 ▼4.62
Posts /wp-admin/edit.php2,084 ▼22.01 ▼0.0033.80 ▼1.9932.87 ▼2.98
Add New Post /wp-admin/post-new.php1,527 ▲11617.72 ▲0.11664.26 ▲33.1452.34 ▼7.18
Media Library /wp-admin/upload.php1,404 ▲164.26 ▲0.0395.24 ▼3.8043.38 ▼2.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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/template-seo-checker/core/libraries/wp_tables.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/template-seo-checker/core/libraries/wp_tables.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/template-seo-checker/index.php:27
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/template-seo-checker/core/libraries/wp_tables.php on line 5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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:
  • Screenshots: These screenshots require images: #1 (Main board after plugin installation), #2 (A list of wordpress posts and current SEO score.), #3 (Detailed factor score after check SEO score for a URL)
Please take inspiration from this readme.txt

template-seo-checker/index.php 85% from 13 tests

Analyzing the main PHP file in "Template SEO Checker" version 1.0.4
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 622 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("template-seo-checker.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,322 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP83583582,979
PO File35567971,156
JavaScript16115167
CSS22520

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity60.33
▷ Minimum class complexity2.00
▷ Maximum class complexity198.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods114
▷ Static methods43.51%
▷ Public methods9684.21%
▷ Protected methods1614.04%
▷ Private methods21.75%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants38
▷ Global constants38100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.21MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
media/img/linkedin.png0.95KB0.99KB0.00%
media/img/view-details.png2.10KB1.52KB▼ 27.59%
media/img/tick.png0.57KB0.30KB▼ 47.41%
media/img/recalc.png0.73KB0.38KB▼ 48.06%
media/img/googleplus.png0.68KB0.70KB0.00%