74% wptao-app

Code Review | wptaoAPP

WordPress plugin wptaoAPP scored74%from 54 tests.

About plugin

  • Plugin page: wptao-app
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4
  • WordPress version: 6.3.1
  • First release: Apr 29, 2020
  • Latest release: Apr 29, 2020
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: smyx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /462 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.92MB] [CPU: ▼37.79ms] Passed 4 tests

This is a short check of server-side resources used by wptaoAPP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0143.07 ▼4.76
Dashboard /wp-admin3.30 ▼0.2628.32 ▼35.46
Posts /wp-admin/edit.php3.30 ▼0.3729.33 ▼23.02
Add New Post /wp-admin/post-new.php3.30 ▼2.8427.97 ▼82.67
Media Library /wp-admin/upload.php3.30 ▼0.1928.52 ▼10.01

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for wptaoAPP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.30 ▼0.072.20 ▲0.3943.13 ▼1.38
Dashboard /wp-admin2,204 ▲305.70 ▲0.0487.54 ▼9.2666.05 ▲22.62
Posts /wp-admin/edit.php2,127 ▲271.98 ▼0.0234.50 ▼0.8533.20 ▼3.57
Add New Post /wp-admin/post-new.php1,697 ▲17122.14 ▲4.59765.06 ▲74.4472.23 ▲12.44
Media Library /wp-admin/upload.php1,417 ▲174.24 ▲0.01102.78 ▼15.1369.24 ▲19.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/wptao-app/wptao-app.php+14
    Use of undefined constant WPTAO_APP_URL - assumed 'WPTAO_APP_URL' (this will throw an Error in a future version of PHP)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wptao-app/wptao-app.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wptao-app === )
The official readme.txt might help

wptao-app/wptao-app.php Passed 13 tests

Analyzing the main PHP file in "wptaoAPP" version 0.1
44 characters long description:
WordPress淘宝客APP/小程序 配置工具

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11925

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected