83% googleapis-to-useso

Code Review | Googleapis-to-useso

WordPress plugin Googleapis-to-useso scored83%from 54 tests.

About plugin

  • Plugin page: googleapis-to-useso
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Aug 27, 2014
  • Latest release: Aug 27, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: sd7087003 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,585 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.91ms] Passed 4 tests

An overview of server-side resources used by Googleapis-to-useso
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.83 ▼5.13
Dashboard /wp-admin3.38 ▲0.0743.22 ▼3.55
Posts /wp-admin/edit.php3.41 ▲0.0545.03 ▼1.70
Add New Post /wp-admin/post-new.php6.05 ▲0.1684.20 ▼14.18
Media Library /wp-admin/upload.php3.31 ▲0.0830.89 ▼4.76

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Googleapis-to-useso
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.591.52 ▼0.2039.91 ▼0.42
Dashboard /wp-admin2,206 ▲215.83 ▼0.0698.44 ▼1.0338.37 ▼5.90
Posts /wp-admin/edit.php2,092 ▲62.00 ▼0.0440.13 ▲6.3134.10 ▼2.72
Add New Post /wp-admin/post-new.php1,514 ▼1917.86 ▼5.35693.53 ▲39.4852.80 ▼0.22
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0195.45 ▼3.7342.71 ▼1.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/googleapis-to-useso/Googleapis-to-useso.php:12

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

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Contributors: Contributors not specified
  • Contributors: No tags were detected
  • Donate link: Invalid URI found ("")
The official readme.txt might help

googleapis-to-useso/Googleapis-to-useso.php 92% from 13 tests

The primary PHP file in "Googleapis-to-useso" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("googleapis-to-useso.php" instead of "Googleapis-to-useso.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1299

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin