79% simple-site-verify

Code Review | Simple Site Verify

WordPress plugin Simple Site Verify scored79%from 54 tests.

About plugin

  • Plugin page: simple-site-verify
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2017
  • Latest release: Jul 29, 2023
  • Number of updates: 41
  • Update frequency: every 52.0 days
  • Top authors: mannweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /12,528 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.03MB] [CPU: ▼8.47ms] Passed 4 tests

An overview of server-side resources used by Simple Site Verify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.66 ▼11.57
Dashboard /wp-admin3.34 ▲0.0446.55 ▼8.15
Posts /wp-admin/edit.php3.40 ▲0.0449.90 ▲1.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.18 ▼15.55
Media Library /wp-admin/upload.php3.27 ▲0.0440.45 ▲3.09
Site Verify /wp-admin/options-general.php?page=simple_site_verify3.2130.22

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Simple Site Verify: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.24 ▼0.111.68 ▼0.8341.97 ▼2.85
Dashboard /wp-admin2,202 ▲225.67 ▲0.0187.22 ▼5.0039.65 ▼1.86
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0438.05 ▼1.3437.51 ▼4.36
Add New Post /wp-admin/post-new.php1,529 ▲323.02 ▼0.59658.12 ▼44.3852.21 ▼3.07
Media Library /wp-admin/upload.php1,401 ▲14.18 ▼0.1098.94 ▼11.3344.98 ▼2.10
Site Verify /wp-admin/options-general.php?page=simple_site_verify8312.0127.3428.40

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple_site_verify
    • > Notice in wp-content/plugins/simple-site-verify/simple-site-verify-settings.php+140
    Trying to access array offset on value of type bool

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-site-verify/simple-site-verify.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-site-verify/simple-site-verify-settings.php:5

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: bing webmaster, site verify, google analytics, google webmaster, pinterest

simple-site-verify/simple-site-verify.php Passed 13 tests

The entry point to "Simple Site Verify" version 1.0.8 is a PHP file that has certain tags in its header comment area
75 characters long description:
Simple method of verifying your site via Pinterest, Google, Bing, & Yandex.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected189 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210346189

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.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
There are no PNG files in this plugin