84% wp-pwa-yoast-seo

Code Review | Yoast SEO for WordPress PWA

WordPress plugin Yoast SEO for WordPress PWA scored84%from 54 tests.

About plugin

  • Plugin page: wp-pwa-yoast-seo
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2018
  • Latest release: Feb 7, 2019
  • Number of updates: 5
  • Update frequency: every 78.4 days
  • Top authors: luisherranz (80%)poliuk (40%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /2,421 total downloads

Benchmarks

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.02MB] [CPU: ▼3.94ms] Passed 4 tests

Server-side resources used by Yoast SEO for WordPress PWA
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.37 ▼1.68
Dashboard /wp-admin3.32 ▲0.0250.88 ▲3.71
Posts /wp-admin/edit.php3.37 ▲0.0249.42 ▲2.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.92 ▼19.85
Media Library /wp-admin/upload.php3.24 ▲0.0238.61 ▲4.18

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Yoast SEO for WordPress PWA
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.32 ▼1.434.74 ▲2.8839.20 ▼8.86
Dashboard /wp-admin2,215 ▲264.82 ▼1.07108.74 ▼3.5442.36 ▼3.01
Posts /wp-admin/edit.php2,097 ▲52.02 ▼0.0336.86 ▼2.3134.01 ▼0.61
Add New Post /wp-admin/post-new.php1,523 ▼1017.55 ▼5.55678.32 ▲5.5949.60 ▼11.31
Media Library /wp-admin/upload.php1,397 ▲94.31 ▼0.0194.21 ▼15.0243.09 ▼3.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pwa-yoast-seo/plugin.php:125
    • > PHP Fatal error
      Uncaught Error: Class 'WPSEO_Frontend' not found in wp-content/plugins/wp-pwa-yoast-seo/classes/class-wpseo-frontend-to-rest-api.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: wp-pwa, yoast, wp-api, seo

wp-pwa-yoast-seo/plugin.php 92% from 13 tests

The main file in "Yoast SEO for WordPress PWA" v. 1.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-pwa-yoast-seo.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin114 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21721113
Markdown1101

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
Yoast_Logo_Small_RGB.png0.78KB0.77KB▼ 2.00%