10% wp-plus

Code Review | WP-Plus

WordPress plugin WP-Plus scored 10% from 54 tests.

About plugin

  • Plugin page: wp-plus
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.1.0
  • WordPress version: 6.3.1
  • First release: Mar 16, 2015
  • Latest release: Jan 6, 2019
  • Number of updates: 53
  • Update frequency: every 26.3 days
  • Top authors: liwanglin12 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 6,743 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'plus_plugin_activate' not found or invalid function name

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

An overview of server-side resources used by WP-Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.74 ▲0.48
Dashboard /wp-admin3.32 ▲0.0146.48 ▼6.26
Posts /wp-admin/edit.php3.37 ▲0.0147.76 ▲0.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.24 ▲4.74
Media Library /wp-admin/upload.php3.24 ▲0.0143.19 ▲9.55
WP Plus /wp-admin/options-general.php?page=wp_plus3.2835.40

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-Plus
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.70 ▼0.861.98 ▲0.3042.54 ▼2.74
Dashboard /wp-admin2,207 ▲195.79 ▲0.8694.85 ▼18.8937.82 ▼8.61
Posts /wp-admin/edit.php2,072 ▼171.98 ▼0.0433.86 ▼4.0730.30 ▼4.13
Add New Post /wp-admin/post-new.php1,545 ▲3118.33 ▲0.83633.22 ▼72.2251.78 ▼3.65
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.0696.06 ▼2.2243.88 ▼3.86
WP Plus /wp-admin/options-general.php?page=wp_plus9122.1522.99119.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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_plus
    • > Notice in wp-content/plugins/wp-plus/option.php+3
    Undefined index: update_pluginoptions

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
Please fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-plus/js/index.php
    • > /wp-content/plugins/wp-plus/css/index.php
    • > /wp-content/plugins/wp-plus/index.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Screenshot #1 (WP-Plus) image not found
Please take inspiration from this readme.txt

wp-plus/wp-plus.php Passed 13 tests

Analyzing the main PHP file in "WP-Plus" version 2.1.4
27 characters long description:
优化和增强您的博客

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,259 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP44163736
JavaScript56783249
CSS23611197
Markdown126077

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin