Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.56ms] Passed 4 tests
An overview of server-side resources used by PDF Image Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.52 ▼2.66 |
Dashboard /wp-admin | 3.31 ▼0.04 | 61.18 ▼4.55 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.32 ▲5.01 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.45 ▼9.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.29 ▲2.07 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for PDF Image Generator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.22 ▼1.09 | 1.70 ▼0.02 | 39.50 ▼5.06 |
Dashboard /wp-admin | 2,224 ▲23 | 5.86 ▼0.06 | 103.60 ▼7.32 | 43.64 ▲0.52 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.02 | 35.59 ▼0.58 | 33.23 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.38 ▲0.12 | 670.91 ▲11.07 | 52.00 ▲4.08 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.38 ▲0.18 | 96.49 ▼14.35 | 43.36 ▼1.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/pdf-image-generator/pdf-image-generator.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (No setup, just upload a PDF file and insert it into the editor.), #2 (An inserted PDF image is editable (align, sizes, etc...) just like an ordinary image file.), #3 (You can set PDF as Featured Image and use functions for PDF in the same way as an image file.), #4 (You can control default settings and generate thumbnails of already-uploaded PDFs in the plugin page.)
pdf-image-generator/pdf-image-generator.php 85% from 13 tests
"PDF Image Generator" version 1.5.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)
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
There were no executable files found in this plugin828 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 85 | 16 | 828 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.72 |
Average class complexity | 235.00 |
▷ Minimum class complexity | 235.00 |
▷ Maximum class complexity | 235.00 |
Average method complexity | 11.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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