84% google-play-store-app-search-and-insert

Code Review | Google Play Store App Search And Insert

WordPress plugin Google Play Store App Search And Insert scored84%from 54 tests.

About plugin

  • Plugin page: google-play-store...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2015
  • Latest release: Feb 19, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: maylamkeobong (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,022 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.41ms] Passed 4 tests

An overview of server-side resources used by Google Play Store App Search And Insert
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.65 ▼8.44
Dashboard /wp-admin3.31 ▲0.0142.46 ▼6.65
Posts /wp-admin/edit.php3.36 ▲0.0144.02 ▼5.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.40 ▼13.07
Media Library /wp-admin/upload.php3.23 ▲0.0034.28 ▲0.03

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Google Play Store App Search And Insert
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲14113.15 ▼1.232.06 ▲0.1939.76 ▼2.11
Dashboard /wp-admin2,296 ▲1084.86 ▼0.04104.63 ▼9.6339.55 ▼5.90
Posts /wp-admin/edit.php2,230 ▲1382.20 ▲0.2042.10 ▲3.1833.55 ▼3.14
Add New Post /wp-admin/post-new.php1,630 ▲11123.21 ▼0.24693.42 ▲70.5859.82 ▲4.59
Media Library /wp-admin/upload.php1,478 ▲964.15 ▲0.0297.28 ▼3.0041.70 ▲1.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-play-store-app-search-and-insert/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (`/assets/screenshot-1.jpg`), #2 (`/assets/screenshot-2.jpg`), #3 (`/assets/screenshot-3.jpg`), #4 (`/assets/screenshot-4.jpg`)
You can look at the official readme.txt

google-play-store-app-search-and-insert/index.php 92% from 13 tests

"Google Play Store App Search And Insert" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("google-play-store-app-search-and-insert.php" instead of "index.php")

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,060 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript119574776
PHP11213255
CSS141129

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/controls.png1.59KB1.67KB0.00%