84% wp-tips

Code Review | WP Tips

WordPress plugin WP Tips scored84%from 54 tests.

About plugin

  • Plugin page: wp-tips
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Jul 3, 2020
  • Latest release: Jul 3, 2020
  • Number of updates: 5
  • Update frequency: every 155.2 days
  • Top authors: ivan192 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,394 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.01MB] [CPU: ▼0.83ms] Passed 4 tests

Analyzing server-side resources used by WP Tips
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.42 ▼0.39
Dashboard /wp-admin3.31 ▲0.0150.00 ▲0.91
Posts /wp-admin/edit.php3.37 ▲0.0148.07 ▲0.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.17 ▲3.88
Media Library /wp-admin/upload.php3.24 ▲0.0040.10 ▼4.62

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Tips: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.38 ▲0.001.80 ▲0.3243.69 ▲3.05
Dashboard /wp-admin2,197 ▲165.56 ▼0.1789.12 ▼10.4039.05 ▼5.63
Posts /wp-admin/edit.php2,105 ▲52.00 ▲0.0138.49 ▲2.3034.48 ▲2.83
Add New Post /wp-admin/post-new.php1,601 ▲7521.82 ▼1.13655.87 ▼27.4337.27 ▼11.87
Media Library /wp-admin/upload.php1,399 ▲54.22 ▲0.06100.24 ▼5.5944.82 ▼1.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 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/wp-tips/wp-tips.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: help, tips

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

The primary PHP file in "WP Tips" version 1.0 is used by WordPress to initiate all plugin functionality
128 characters long description:
The plugin displays tips about WordPress at the top of the admin panel. When switching from one page to another, a hint changes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111332

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin