84% ggpush

Code Review | 果果推送

WordPress plugin 果果推送 scored84%from 54 tests.

About plugin

  • Plugin page: ggpush
  • Plugin version: 0.0.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 9, 2022
  • Latest release: Nov 11, 2023
  • Number of updates: 15
  • Update frequency: every 38.8 days
  • Top authors: wyzda2021 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

8,000+ active /6,548 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.93ms] Passed 4 tests

Server-side resources used by 果果推送
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.12 ▼1.53
Dashboard /wp-admin3.37 ▲0.0745.26 ▼3.58
Posts /wp-admin/edit.php3.49 ▲0.1347.59 ▼0.79
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.05 ▼21.81
Media Library /wp-admin/upload.php3.30 ▲0.0731.74 ▲1.29
推送记录 /wp-admin/admin.php?page=ggpush-record3.3437.25
推送设置 /wp-admin/admin.php?page=ggpush-settings3.3131.94
辅助推送 /wp-admin/admin.php?page=ggpush-assist-push3.2830.99
定时推送 /wp-admin/admin.php?page=ggpush-timing-push3.3631.27

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables
wp_ggpush_records
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
ggpush_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for 果果推送
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6314.34 ▲0.021.69 ▲0.0443.74 ▼1.09
Dashboard /wp-admin2,233 ▲595.64 ▼0.0485.96 ▼4.7047.99 ▲4.09
Posts /wp-admin/edit.php2,135 ▲321.97 ▼0.0336.75 ▼3.3541.01 ▲1.52
Add New Post /wp-admin/post-new.php1,557 ▲3123.28 ▲0.18614.48 ▼8.1555.34 ▼0.41
Media Library /wp-admin/upload.php1,435 ▲354.16 ▼0.0196.69 ▼3.4547.99 ▲2.86
推送记录 /wp-admin/admin.php?page=ggpush-record1,1802.0126.3867.42
推送设置 /wp-admin/admin.php?page=ggpush-settings9332.0325.0155.62
辅助推送 /wp-admin/admin.php?page=ggpush-assist-push8642.0125.7355.27
定时推送 /wp-admin/admin.php?page=ggpush-timing-push1,0012.0021.7043.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ggpush/includes/class-ggpush-record-table.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ggpush/includes/class-ggpush-task-table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ggpush/includes/class-ggpush-record-table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ggpush/includes/class-ggpush-task-table.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ggpush/includes/class-ggpush-task-table.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ggpush/includes/class-ggpush-record-table.php on line 4

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: baidu, baiduseo, bing, indexnow

ggpush/ggpush.php 92% from 13 tests

This is the main PHP file of "果果推送" version 0.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,191 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP111474612,183
JavaScript2008

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity23.89
▷ Minimum class complexity4.00
▷ Maximum class complexity75.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods95
▷ Static methods8084.21%
▷ Public methods95100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants990.00%
▷ Class constants110.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin