78% post-to-seo

Code Review | Post To SEO

WordPress plugin Post To SEO scored78%from 54 tests.

About plugin

  • Plugin page: post-to-seo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.1
  • WordPress version: 6.3.1
  • First release: Jul 26, 2015
  • Latest release: Jul 26, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: EazyServer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /902 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.61MB] [CPU: ▼14.45ms] Passed 4 tests

Server-side resources used by Post To SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.64 ▼5.25
Dashboard /wp-admin3.38 ▲0.0842.27 ▼4.20
Posts /wp-admin/edit.php3.50 ▲0.1446.33 ▲2.15
Add New Post /wp-admin/post-new.php3.23 ▼2.6536.71 ▼50.51
Media Library /wp-admin/upload.php3.31 ▲0.0836.88 ▲3.19
PostToSEO /wp-admin/options-general.php?page=PostToSEO3.2531.23

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Post To SEO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.76 ▲0.381.64 ▼0.4343.58 ▼10.61
Dashboard /wp-admin2,210 ▲245.88 ▲0.92102.80 ▼13.7939.35 ▲0.55
Posts /wp-admin/edit.php2,090 ▲12.05 ▲0.0736.29 ▲0.7432.25 ▼3.57
Add New Post /wp-admin/post-new.php6,577 ▲5,05723.46 ▲0.60915.61 ▲242.2363.87 ▲7.58
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.0595.72 ▼2.3843.38 ▼4.43
PostToSEO /wp-admin/options-general.php?page=PostToSEO8062.0323.6725.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=PostToSEO
    • > Notice in wp-content/plugins/post-to-seo/index.php+90
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/post-to-seo/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: post, tags, seo, search engine optimisation, post seo...

post-to-seo/index.php 92% from 13 tests

This is the main PHP file of "Post To SEO" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-to-seo.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected345 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods529.41%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
2 PNG files occupy 0.29MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png155.67KB53.35KB▼ 65.73%
assets/screenshot-2.png141.84KB49.92KB▼ 64.80%