89% pdfl-io

Code Review | pdfl.io

WordPress plugin pdfl.io scored89%from 54 tests.

About plugin

  • Plugin page: pdfl-io
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Jun 13, 2021
  • Latest release: Jun 13, 2021
  • Number of updates: 4
  • Update frequency: every 5.5 days
  • Top authors: dougblackjr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /298 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
Install script ran successfully

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

Analyzing server-side resources used by pdfl.io
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.36 ▼4.37
Dashboard /wp-admin3.32 ▲0.0252.08 ▲3.18
Posts /wp-admin/edit.php3.37 ▲0.0244.43 ▼4.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.53 ▼2.90
Media Library /wp-admin/upload.php3.24 ▲0.0134.65 ▼1.25
pdfl.io /wp-admin/admin.php?page=pdflio-help3.2528.86

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for pdfl.io
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.27 ▼1.291.69 ▼0.1139.23 ▼3.72
Dashboard /wp-admin2,222 ▲375.83 ▲0.7494.60 ▼18.2436.13 ▼9.28
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0036.41 ▲2.2237.25 ▲2.87
Add New Post /wp-admin/post-new.php1,546 ▲1323.10 ▲0.03661.00 ▼34.9544.81 ▼10.41
Media Library /wp-admin/upload.php1,404 ▲164.21 ▲0.0093.30 ▼29.2444.05 ▼7.25
pdfl.io /wp-admin/admin.php?page=pdflio-help8402.0224.1327.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: pdf, shortcode

pdfl-io/pdflio.php 85% from 13 tests

The entry point to "pdfl.io" version 1.0.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pdfl-io.php" instead of "pdflio.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin609 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP614414609

PHP code Passed 2 tests

This is a short overview 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.40
Average class complexity25.00
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods104
▷ Static methods21.92%
▷ Public methods7875.00%
▷ Protected methods109.62%
▷ Private methods1615.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin