10% google-app-engine

Code Review | Google App Engine for WordPress

WordPress plugin Google App Engine for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: google-app-engine
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2013
  • Latest release: Feb 24, 2015
  • Number of updates: 22
  • Update frequency: every 28.3 days
  • Top authors: slangley (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

80+ active /25,791 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/google-app-engine/modules/urlfetch.php+72
    require_once(google/appengine/api/urlfetch_service_pb.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.73ms] Passed 4 tests

Server-side resources used by Google App Engine for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.15 ▼4.56
Dashboard /wp-admin3.31 ▲0.0045.69 ▼2.59
Posts /wp-admin/edit.php3.36 ▲0.0049.87 ▲4.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.74 ▼7.52
Media Library /wp-admin/upload.php3.23 ▲0.0034.89 ▲3.76

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Google App Engine for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.54 ▼1.211.97 ▲0.1841.55 ▼8.64
Dashboard /wp-admin2,206 ▲184.90 ▼0.9895.37 ▼18.2139.87 ▼8.53
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0236.79 ▼0.4031.73 ▼0.68
Add New Post /wp-admin/post-new.php1,534 ▼223.27 ▲0.40668.80 ▲17.7154.89 ▼28.41
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0296.48 ▲0.2243.30 ▲0.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function google\\appengine\\WordPress\\add_filter() in wp-content/plugins/google-app-engine/modules/core.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function google\\appengine\\WordPress\\add_filter() in wp-content/plugins/google-app-engine/modules/core.php:61
    • > PHP Warning
      require_once(ABSPATH/wp-includes/class-wp-image-editor.php): failed to open stream: No such file or directory in wp-content/plugins/google-app-engine/modules/uploads.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function google\\appengine\\WordPress\\Mail\\add_action() in wp-content/plugins/google-app-engine/modules/mail.php:42
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-app-engine/modules/uploads.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/google-app-engine/modules/urlfetch.php:37
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-includes/class-wp-image-editor.php' (include_path='.:/usr/share/php') in wp-content/plugins/google-app-engine/modules/uploads.php on line 29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: uploads, google, email, gae, uploading...

google-app-engine/appengine.php 92% from 13 tests

"Google App Engine for WordPress" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-app-engine.php" instead of "appengine.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,258 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP84447982,244
CSS10114

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity30.33
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods96
▷ Static methods4243.75%
▷ Public methods8891.67%
▷ Protected methods44.17%
▷ Private methods44.17%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants640.00%
▷ Class constants960.00%
▷ Public constants9100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
static/logo.png2.87KB1.63KB▼ 43.03%