84% pppt

Code Review | PPPT

WordPress plugin PPPT scored84%from 54 tests.

About plugin

  • Plugin page: pppt
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: May 8, 2019
  • Latest release: Jul 20, 2021
  • Number of updates: 7
  • Update frequency: every 114.9 days
  • Top authors: xuxu.fr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /575 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by PPPT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.86 ▲4.08
Dashboard /wp-admin3.32 ▲0.0247.07 ▼7.44
Posts /wp-admin/edit.php3.38 ▲0.0249.99 ▼0.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.92 ▼2.40
Media Library /wp-admin/upload.php3.25 ▲0.0236.51 ▼2.67

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for PPPT
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲11813.39 ▼0.987.86 ▲6.1638.96 ▼7.11
Dashboard /wp-admin2,202 ▲255.67 ▲0.0584.09 ▼14.2138.95 ▼4.73
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0439.85 ▲3.6136.08 ▲1.65
Add New Post /wp-admin/post-new.php1,533 ▲523.22 ▲0.20680.81 ▲40.5874.08 ▲14.43
Media Library /wp-admin/upload.php1,410 ▲104.20 ▼0.0195.11 ▼5.8444.45 ▼0.07

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pppt/public/partials/pppt-public-display.php
    • > /wp-content/plugins/pppt/admin/partials/pppt-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === pppt === )
Please take inspiration from this readme.txt

pppt/pppt.php Passed 13 tests

The main file in "PPPT" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
73 characters long description:
Archive plugins you don't need anymore, and get it back when you want it.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin772 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12163720578
PO File1293096
JavaScript296155
CSS29843

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity11.71
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected