84% wpsso-am

Code Review | WPSSO Mobile App Meta Tags

WordPress plugin WPSSO Mobile App Meta Tags scored84%from 54 tests.

About plugin

  • Plugin page: wpsso-am
  • Plugin version: 4.0.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 28, 2014
  • Latest release: Nov 9, 2023
  • Number of updates: 2,500
  • Update frequency: every 1.3 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /118,954 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.80ms] Passed 4 tests

This is a short check of server-side resources used by WPSSO Mobile App Meta Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.15 ▼4.22
Dashboard /wp-admin3.33 ▲0.0345.81 ▼11.34
Posts /wp-admin/edit.php3.44 ▲0.0946.35 ▼0.96
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.72 ▼2.05
Media Library /wp-admin/upload.php3.25 ▲0.0233.10 ▼1.60

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WPSSO Mobile App Meta Tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.03 ▼0.691.74 ▲0.1039.93 ▼3.87
Dashboard /wp-admin2,201 ▲215.62 ▼0.0492.35 ▼0.7039.45 ▼0.65
Posts /wp-admin/edit.php2,106 ▲61.94 ▼0.0440.06 ▲2.9337.65 ▲4.78
Add New Post /wp-admin/post-new.php1,532 ▲623.40 ▼0.22688.12 ▼3.7952.57 ▲0.83
Media Library /wp-admin/upload.php1,406 ▲64.17 ▼0.0199.96 ▼10.9641.02 ▼8.98

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 were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

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 items
  • 14× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wpsso-am/gettext/gettext-lib-abstract-com.php
    • > /wp-content/plugins/wpsso-am/lib/abstract/com/add-on.php
    • > /wp-content/plugins/wpsso-am/wpsso-am.php
    • > /wp-content/plugins/wpsso-am/lib/config.php
    • > /wp-content/plugins/wpsso-am/lib/filters-upgrade.php
    • > /wp-content/plugins/wpsso-am/lib/filters-messages.php
    • > /wp-content/plugins/wpsso-am/gettext/gettext-lib-config.php
    • > /wp-content/plugins/wpsso-am/lib/filters.php
    • > /wp-content/plugins/wpsso-am/lib/register.php
    • > /wp-content/plugins/wpsso-am/lib/submenu/am-general.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

wpsso-am/wpsso-am.php Passed 13 tests

This is the main PHP file of "WPSSO Mobile App Meta Tags" version 4.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
Apple Store / iTunes and Google Play App meta tags for Apple's mobile Safari banner and Twitter's App Card.

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
Everything looks great! No dangerous files found in this plugin1,587 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP155582271,278
PO File16768184
Markdown132095
HTML232030

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.42
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes216.67%
▷ Concrete classes1083.33%
▷ Final classes00.00%
Methods54
▷ Static methods814.81%
▷ Public methods4379.63%
▷ Protected methods712.96%
▷ Private methods47.41%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png86.99KB23.61KB▼ 72.86%
images/icon-128x128.png28.24KB8.72KB▼ 69.10%