90% pdf-shortcodes-ultimate

Code Review | PDF Shortcodes Ultimate

WordPress plugin PDF Shortcodes Ultimate scored90%from 54 tests.

About plugin

  • Plugin page: pdf-shortcodes-ul...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2017
  • Latest release: Sep 28, 2017
  • Number of updates: 6
  • Update frequency: every 2.3 days
  • Top authors: opendsi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,528 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.89ms] Passed 4 tests

Server-side resources used by PDF Shortcodes Ultimate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0532.90 ▼11.73
Dashboard /wp-admin3.35 ▲0.0445.88 ▼6.02
Posts /wp-admin/edit.php3.46 ▲0.1145.81 ▼2.78
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.18 ▼7.04
Media Library /wp-admin/upload.php3.27 ▲0.0434.64 ▼0.55

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
pdf_shortcodes_ultimate_version

Browser metrics Passed 4 tests

PDF Shortcodes Ultimate: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.77 ▼0.471.85 ▼0.0941.11 ▼2.97
Dashboard /wp-admin2,209 ▲244.80 ▼1.0797.26 ▼2.6234.99 ▼4.01
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0139.10 ▲2.1134.76 ▼0.48
Add New Post /wp-admin/post-new.php1,519 ▼1423.31 ▲0.43673.98 ▲7.2875.25 ▲18.11
Media Library /wp-admin/upload.php1,382 ▼04.15 ▼0.05108.18 ▲12.7446.61 ▲2.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • pdf_shortcodes_ultimate_version
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: shortcodes ultimate, embed, pdf viewer, su_pdf, pdf

pdf-shortcodes-ultimate/pdf-shortcodes-ultimate.php Passed 13 tests

"PDF Shortcodes Ultimate" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
Embed PDF documents in your article or page with this "PDF" shortcode for Shortcodes Ultimate.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin982 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP8224635821
Markdown148064
JavaScript416654
PO File1111343

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity21.60
▷ Minimum class complexity5.00
▷ Maximum class complexity61.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin