89% visibility-warning

Code Review | Search Engine Visibility Warning

WordPress plugin Search Engine Visibility Warning scored 89% from 54 tests.

About plugin

  • Plugin page: visibility-warning
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-4.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2011
  • Latest release: Aug 31, 2015
  • Number of updates: 10
  • Update frequency: every 144.1 days
  • Top authors: pauiglesias (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.92ms] Passed 4 tests

A check of server-side resources used by Search Engine Visibility Warning
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.64 ▼8.25
Dashboard /wp-admin3.32 ▲0.0245.61 ▼5.46
Posts /wp-admin/edit.php3.37 ▲0.0245.97 ▼0.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.23 ▼5.16
Media Library /wp-admin/upload.php3.24 ▲0.0234.30 ▼0.80

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Search Engine Visibility Warning
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.51 ▼0.784.83 ▲2.8639.82 ▼7.53
Dashboard /wp-admin2,202 ▲145.89 ▲0.05105.53 ▼10.6743.18 ▼3.53
Posts /wp-admin/edit.php2,082 ▼72.04 ▲0.0339.03 ▲3.5334.33 ▼1.29
Add New Post /wp-admin/post-new.php1,539 ▲1018.21 ▼4.68602.87 ▼24.8163.38 ▲8.62
Media Library /wp-admin/upload.php1,384 ▼44.19 ▼0.0493.71 ▼3.3142.59 ▲0.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

visibility-warning/visibility-warning.php 92% from 13 tests

Analyzing the main PHP file in "Search Engine Visibility Warning" version 1.1
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 216 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1506053
PO File14431

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin