84% pods-seo

Code Review | Pods SEO

WordPress plugin Pods SEO scored84%from 54 tests.

About plugin

  • Plugin page: pods-seo
  • Plugin version: 2.2.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Dec 3, 2013
  • Latest release: Oct 19, 2021
  • Number of updates: 16
  • Update frequency: every 179.9 days
  • Top authors: sc0ttkclark (93.75%)Shelob9 (12.5%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /16,799 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.43ms] Passed 4 tests

Analyzing server-side resources used by Pods SEO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.38 ▼1.49
Dashboard /wp-admin3.31 ▲0.0051.68 ▲8.09
Posts /wp-admin/edit.php3.36 ▲0.0047.90 ▲1.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.09 ▲4.18
Media Library /wp-admin/upload.php3.23 ▲0.0032.41 ▼2.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Pods SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.76 ▼0.832.04 ▲0.1742.47 ▲0.01
Dashboard /wp-admin2,206 ▲174.87 ▼1.03116.43 ▼18.6540.67 ▼0.13
Posts /wp-admin/edit.php2,086 ▲112.12 ▲0.0739.90 ▲0.1634.99 ▼8.95
Add New Post /wp-admin/post-new.php1,543 ▲1418.23 ▼4.68605.99 ▼60.6355.97 ▼3.25
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.0595.04 ▼8.7142.30 ▼5.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pods-seo/pods-seo.php:29

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: pods, analysis, seo, xml sitemaps

pods-seo/pods-seo.php Passed 13 tests

Analyzing the main PHP file in "Pods SEO" version 2.2.1
113 characters long description:
Integrates with WP SEO Analysis for custom fields and Pods Advanced Content Types with WordPress SEO XML Sitemaps

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin477 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2117177378
JavaScript1551299

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity79.00
▷ Minimum class complexity79.00
▷ Maximum class complexity79.00
Average method complexity5.88
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin