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.01MB] [CPU: ▼7.46ms] Passed 4 tests
A check of server-side resources used by pdfsharing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.72 ▼2.18 |
Dashboard /wp-admin | 3.32 ▼0.02 | 43.99 ▼9.88 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.89 ▼1.83 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.03 ▼15.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.66 ▲1.39 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_pdfsharing_list_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_pdfsharing_widget |
Browser metrics Passed 4 tests
Checking browser requirements for pdfsharing
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.16 ▼1.51 | 1.72 ▲0.03 | 42.68 ▼0.46 |
Dashboard /wp-admin | 2,203 ▲12 | 5.85 ▲0.03 | 106.94 ▲0.02 | 45.33 ▲5.78 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 39.84 ▼2.01 | 34.82 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,519 ▼9 | 22.95 ▲4.80 | 648.61 ▲35.48 | 47.19 ▼6.35 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.06 | 96.57 ▼2.91 | 42.66 ▲0.63 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_pdfsharing_widget
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_pdfsharing_list_widget
- theysaidso_admin_options
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pdfsharing/pdfsharing.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 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
9 plugin tags: sharing, pdf, facebook, xing, social...
pdfsharing/pdfsharing.php Passed 13 tests
The main file in "pdfsharing" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
126 characters long description:
With this plugin you can use the service from pdfsharing.com in your site. Please lookup pdfsharing.com for more informations.
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
No dangerous file extensions were detected307 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 60 | 136 | 307 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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