Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.09MB] [CPU: ▼13.37ms] Passed 4 tests
This is a short check of server-side resources used by Post Thumbnail Editor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.46 ▲0.89 |
Dashboard /wp-admin | 3.40 ▲0.05 | 44.11 ▼19.55 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.04 ▲2.52 |
Add New Post /wp-admin/post-new.php | 5.29 ▼0.60 | 70.17 ▼35.16 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 35.86 ▲0.34 |
Post Thumbnail Editor /wp-admin/options-general.php?page=pte | 3.52 | 33.09 |
Post Thumbnail Editor /wp-admin/admin.php?page=pte-edit | 3.28 | 30.28 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Post Thumbnail Editor: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.57 ▼0.81 | 4.56 ▲2.90 | 44.37 ▼4.48 |
Dashboard /wp-admin | 2,210 ▲19 | 5.87 ▲0.01 | 97.76 ▼21.20 | 41.68 ▼5.84 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.04 | 34.35 ▼8.95 | 38.87 ▲3.77 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.74 ▼0.33 | 607.13 ▼43.84 | 33.94 ▼26.45 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.24 ▲0.01 | 95.40 ▼13.16 | 40.17 ▼4.97 |
Post Thumbnail Editor /wp-admin/options-general.php?page=pte | 973 | 2.03 | 22.68 | 33.61 |
Post Thumbnail Editor /wp-admin/admin.php?page=pte-edit | 744 | 2.05 | 23.66 | 22.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/post-thumbnail-editor/post-thumbnail-editor.php:34
- > PHP Notice
Undefined variable: meta in wp-content/plugins/post-thumbnail-editor/html/pte.php on line 18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/post-thumbnail-editor/html/pte.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'WP_Image_Editor_Imagick' not found in wp-content/plugins/post-thumbnail-editor/php/class-pte-image-editor-imagick.php:3
- > PHP Warning
Use of undefined constant PTE_PLUGINPATH - assumed 'PTE_PLUGINPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/post-thumbnail-editor/php/functions.php on line 6
- > PHP Warning
require_once(PTE_PLUGINPATHphp/log.php): failed to open stream: No such file or directory in wp-content/plugins/post-thumbnail-editor/php/functions.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'WP_Image_Editor_GD' not found in wp-content/plugins/post-thumbnail-editor/php/class-pte-image-editor-gd.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/post-thumbnail-editor/html/pte.php on line 19
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/post-thumbnail-editor/html/pte.php on line 17
- > PHP Notice
Undefined variable: meta in wp-content/plugins/post-thumbnail-editor/html/pte.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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:
- Screenshots: Add images for these screenshots: #1 (Before/After), #2 (To edit from Media Library click "Thumbnail" in the rollover options for the row.), #3 (In the Edit subpage for media locate the box titled "Thumbnail Settings", and click the link to "Post Thumbnail Editor".), #4 (Crop the image as you see fit, select the thumbnails you wish to change, and click "Crop".), #5 (Save the resized/recropped images by clicking the save icon.)
post-thumbnail-editor/post-thumbnail-editor.php Passed 13 tests
The primary PHP file in "Post Thumbnail Editor" version 2.4.8 is used by WordPress to initiate all plugin functionality
40 characters long description:
Individually manage your post thumbnails
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected10,494 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 376 | 702 | 3,048 |
PHP | 9 | 346 | 579 | 1,882 |
CSS | 6 | 17 | 39 | 1,676 |
Sass | 13 | 19 | 22 | 928 |
LESS | 12 | 18 | 27 | 907 |
PO File | 6 | 477 | 657 | 881 |
CoffeeScript | 11 | 120 | 207 | 616 |
SVG | 1 | 0 | 0 | 414 |
HTML | 1 | 13 | 0 | 71 |
Markdown | 1 | 15 | 0 | 51 |
make | 1 | 7 | 12 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 18 | 39.13% |
▷ Public methods | 34 | 73.91% |
▷ Protected methods | 6 | 13.04% |
▷ Private methods | 6 | 13.04% |
Functions | 69 | |
▷ Named functions | 69 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 4 | 26.67% |
▷ Class constants | 11 | 73.33% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin