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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.42ms] Passed 4 tests
This is a short check of server-side resources used by PDF 2 Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.74 ▼3.50 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.62 ▼5.00 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.81 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.46 ▼23.80 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.98 ▼1.38 |
New Post from PDF /wp-admin/edit.php?post_type=page&page=new-post-from-pdf | 3.18 | 44.31 |
New Post from PDF /wp-admin/edit.php?post_type=article&page=new-post-from-pdf | 3.18 | 42.05 |
New Post from PDF /wp-admin/edit.php?page=new-post-from-pdf | 3.18 | 39.93 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
pdf2txt_executable |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PDF 2 Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.21 ▼1.43 | 1.88 ▲0.26 | 40.24 ▼0.14 |
Dashboard /wp-admin | 2,214 ▲23 | 4.78 ▼1.09 | 106.42 ▲5.83 | 39.70 ▼2.95 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.97 ▼0.04 | 38.62 ▼2.81 | 35.44 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,539 ▲5 | 23.18 ▲0.08 | 668.24 ▲63.83 | 49.62 ▼7.44 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.17 ▼0.05 | 98.91 ▲0.21 | 44.32 ▲1.09 |
New Post from PDF /wp-admin/edit.php?post_type=page&page=new-post-from-pdf | 1,001 | 2.05 | 26.24 | 58.34 |
New Post from PDF /wp-admin/edit.php?post_type=article&page=new-post-from-pdf | 1,022 | 2.01 | 22.04 | 36.41 |
New Post from PDF /wp-admin/edit.php?page=new-post-from-pdf | 1,001 | 2.05 | 25.46 | 37.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- pdf2txt_executable
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?page=new-post-from-pdf
- > Notice in wp-content/plugins/pdf2post/pdf2post.php+317
Undefined variable: basePdf2txtCmd
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
pdf2post/pdf2post.php Passed 13 tests
The main file in "PDF 2 Post" v. 2.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
123 characters long description:
Bulk convert PDF documents to posts (imports all text and images - and attach images automatically to newly created posts).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin804 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 109 | 175 | 697 |
Python | 2 | 25 | 30 | 81 |
CSS | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 91.00 |
▷ Minimum class complexity | 91.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 6.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected