84% wppg

Code Review | WPPG

WordPress plugin WPPG scored84%from 54 tests.

About plugin

  • Plugin page: wppg
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.9.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2017
  • Latest release: Nov 21, 2017
  • Number of updates: 8
  • Update frequency: every 2.3 days
  • Top authors: Agus Nurwanto (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,027 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.09ms] Passed 4 tests

Server-side resources used by WPPG
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.97 ▼4.90
Dashboard /wp-admin3.32 ▲0.0245.12 ▼1.38
Posts /wp-admin/edit.php3.38 ▲0.0244.95 ▼1.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.49 ▼25.05
Media Library /wp-admin/upload.php3.25 ▲0.0235.73 ▲1.42

Server storage [IO: ▲0.12MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPPG
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.73 ▲0.361.76 ▼0.2642.03 ▲3.02
Dashboard /wp-admin2,204 ▲194.87 ▼1.0099.88 ▼19.7940.35 ▼3.51
Posts /wp-admin/edit.php2,096 ▲72.00 ▲0.0039.18 ▼1.6139.26 ▲5.68
Add New Post /wp-admin/post-new.php1,522 ▲823.13 ▲5.69642.32 ▼26.4252.76 ▼4.91
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0594.68 ▼3.7043.46 ▼0.00
WPPG /wp-admin/wppg.php260.440.1413.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/wppg.php
    • > Network (severe)
    wp-admin/wppg.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid plugin version format
The official readme.txt might help

wppg/wppg.php 92% from 13 tests

Analyzing the main PHP file in "WPPG" version 1.0.1
Please take the time to fix the following:
  • Git Repository: An alternative Git repository was detected

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,130 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP74631,5092,114
Markdown15016

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity329.00
▷ Minimum class complexity329.00
▷ Maximum class complexity329.00
Average method complexity6.05
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods65
▷ Static methods00.00%
▷ Public methods5381.54%
▷ Protected methods1116.92%
▷ Private methods11.54%
Functions49
▷ Named functions49100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
There were not PNG files found in your plugin