74% seothemes-core

Code Review | SEO Themes Core

WordPress plugin SEO Themes Core scored74%from 54 tests.

About plugin

  • Plugin page: seothemes-core
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.3-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 18, 2019
  • Latest release: Sep 18, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: seothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /438 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.86MB] [CPU: ▼56.88ms] Passed 4 tests

An overview of server-side resources used by SEO Themes Core
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.324.62 ▼36.52
Dashboard /wp-admin2.16 ▼1.1911.16 ▼54.43
Posts /wp-admin/edit.php2.16 ▼1.207.44 ▼44.09
Add New Post /wp-admin/post-new.php2.16 ▼3.738.90 ▼92.48
Media Library /wp-admin/upload.php2.16 ▼1.076.92 ▼32.01

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for SEO Themes Core
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.59 ▼1.161.77 ▲0.0344.88 ▲3.86
Dashboard /wp-admin2,215 ▲115.85 ▼0.03103.02 ▼4.8440.13 ▼2.05
Posts /wp-admin/edit.php2,100 ▲32.04 ▲0.0440.63 ▲1.3036.36 ▼2.96
Add New Post /wp-admin/post-new.php1,526 ▼1017.66 ▼5.26686.92 ▲16.5463.42 ▲5.29
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.04108.90 ▲9.2947.15 ▲2.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-includes/default-constants.php+411
    Constant TEMPLATEPATH already defined
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SeoThemes\\Core\\add_action() in wp-content/plugins/seothemes-core/lib/init.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/seothemes-core/lib/structure/pagination.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SeoThemes\\Core\\Themes\\add_filter() in wp-content/plugins/seothemes-core/lib/themes/business-pro.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SeoThemes\\Core\\__() in wp-content/plugins/seothemes-core/config/page-layouts.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/seothemes-core/config/scripts-and-styles.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/seothemes-core/lib/structure/wrap.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/seothemes-core/lib/functions/markup.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seothemes-core/lib/functions/defaults.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/seothemes-core/lib/structure/comments.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seothemes-core/lib/functions/onboarding.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: genesis

seothemes-core/seothemes-core.php 92% from 13 tests

"SEO Themes Core" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("assets/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,598 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP413721,1591,474
JavaScript6382119
SVG3003
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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
Namespaces7
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%
Functions100
▷ Named functions8787.00%
▷ Anonymous functions1313.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/paypal.png3.19KB3.19KB0.00%
assets/img/stripe.png3.25KB3.25KB0.00%
assets/img/placeholder.png0.23KB0.23KB0.00%