78% seo-pyramid

Code Review | SEO Pyramid

WordPress plugin SEO Pyramid scored78%from 54 tests.

About plugin

  • Plugin page: seo-pyramid
  • Plugin version: 1.9.8
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 28, 2019
  • Latest release: May 16, 2023
  • Number of updates: 257
  • Update frequency: every 4.9 days
  • Top authors: sleekchib (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /9,018 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼5.45ms] Passed 4 tests

An overview of server-side resources used by SEO Pyramid
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2937.93 ▼3.83
Dashboard /wp-admin3.67 ▲0.3746.77 ▲0.92
Posts /wp-admin/edit.php3.76 ▲0.4149.37 ▼1.40
Add New Post /wp-admin/post-new.php6.21 ▲0.3388.45 ▼17.47
Media Library /wp-admin/upload.php3.53 ▲0.3037.03 ▲1.38
SEO Pyramid /wp-admin/options-general.php?page=seo-pyramid3.5031.61

Server storage [IO: ▲0.21MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for SEO Pyramid
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.44 ▼1.321.75 ▼0.0838.83 ▼8.50
Dashboard /wp-admin2,236 ▲485.20 ▼0.70113.50 ▲9.8866.81 ▲22.67
Posts /wp-admin/edit.php2,155 ▲632.03 ▼0.0244.30 ▲2.0648.19 ▲12.23
Add New Post /wp-admin/post-new.php6,790 ▲5,24822.74 ▲4.28892.39 ▲283.4478.94 ▲29.72
Media Library /wp-admin/upload.php1,412 ▲214.26 ▲0.0098.51 ▲0.4857.51 ▲17.53
SEO Pyramid /wp-admin/options-general.php?page=seo-pyramid9802.2227.6637.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/seo-pyramid/builders/forbidden-languages.php
    • > /wp-content/plugins/seo-pyramid/builders/sitemap.php
    • > /wp-content/plugins/seo-pyramid/builders/seo_pyramid_analyzer.php
    • > /wp-content/plugins/seo-pyramid/head_tags.php
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/seo-pyramid/parts/settings-navigation.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/seo-pyramid/pages/reports-page.php:157
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/seo-pyramid/builders/shared-analyzer.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/seo-pyramid/builders/status.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-pyramid/seo_pyramid_functions.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-pyramid/builders/schema.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/seo-pyramid/pages/schema-page.php:356
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/seo-pyramid/pages/sitemap-page.php:240
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-pyramid/pages/general-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-pyramid/seo_pyramid_form.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (screenshot-1.PNG)
The official readme.txt might help

seo-pyramid/index.php 92% from 13 tests

This is the main PHP file of "SEO Pyramid" version 1.9.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("seo-pyramid.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,341 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP162,4781922,675
CSS110341,133
JavaScript121230533

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.86
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods79
▷ Static methods00.00%
▷ Public methods7898.73%
▷ Protected methods00.00%
▷ Private methods11.27%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/yandex-icon.png0.67KB0.53KB▼ 21.88%
img/bing-icon.png2.91KB1.57KB▼ 46.21%
img/yandex-globe.png0.69KB0.58KB▼ 16.38%
img/yandex-lock.png0.26KB0.19KB▼ 27.10%
img/google-icon.png2.07KB1.46KB▼ 29.35%