Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.78ms] Passed 4 tests
This is a short check of server-side resources used by Searchable Attachments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.26 ▲0.36 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.69 ▼0.33 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.90 ▲5.23 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.19 ▼13.75 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.50 ▼5.38 |
Server storage [IO: ▲26.71MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Total filesystem usage should be limited to 25MB (currently using 26.71MB)
Filesystem: 236 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Searchable Attachments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.25 ▼1.06 | 1.83 ▲0.19 | 42.67 ▲2.67 |
Dashboard /wp-admin | 2,209 ▲18 | 5.91 ▲0.83 | 96.10 ▼12.27 | 37.82 ▼4.24 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.07 | 38.35 ▼1.82 | 33.45 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,542 ▲1 | 18.34 ▼5.10 | 594.47 ▼56.31 | 56.28 ▼10.03 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.06 | 101.43 ▲5.48 | 46.81 ▲4.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
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)
Good news, no errors were detected
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
- 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Smalot\\PdfParser\\Font' not found in wp-content/plugins/searchable-attachments/inc/tools/pdfparser/Font/FontType0.php:40
- > PHP Fatal error
Uncaught Error: Class 'Smalot\\PdfParser\\Font' not found in wp-content/plugins/searchable-attachments/inc/tools/pdfparser/Font/FontType1.php:40
- > PHP Fatal error
Uncaught Error: Class 'Smalot\\PdfParser\\Element' not found in wp-content/plugins/searchable-attachments/inc/tools/pdfparser/Element/ElementString.php:42
- > PHP Fatal error
Uncaught Error: Class 'Smalot\\PdfParser\\Element' not found in wp-content/plugins/searchable-attachments/inc/tools/pdfparser/Element/ElementName.php:42
- > PHP Fatal error
Uncaught Error: Class 'Smalot\\PdfParser\\Element' not found in wp-content/plugins/searchable-attachments/inc/tools/pdfparser/Element/ElementNull.php:41
- > PHP Fatal error
Cannot use Smalot\\PdfParser\\Object as Object because 'Object' is a special class name in wp-content/plugins/searchable-attachments/inc/tools/pdfparser/XObject/Form.php on line 34
- > PHP Fatal error
Cannot use 'Object' as class name as it is reserved in wp-content/plugins/searchable-attachments/inc/tools/pdfparser/Object.php on line 41
- > PHP Fatal error
Uncaught Error: Class 'Smalot\\PdfParser\\Object' not found in wp-content/plugins/searchable-attachments/inc/tools/pdfparser/Pages.php:38
- > PHP Fatal error
Uncaught Error: Class 'Smalot\\PdfParser\\Object' not found in wp-content/plugins/searchable-attachments/inc/tools/pdfparser/Page.php:42
- > PHP Fatal error
Cannot use Smalot\\PdfParser\\Object as Object because 'Object' is a special class name in wp-content/plugins/searchable-attachments/inc/tools/pdfparser/XObject/Image.php on line 33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: search, pdf, attachments
searchable-attachments/searchable-attachments.php Passed 13 tests
This is the main PHP file of "Searchable Attachments" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
Extend WordPress searches to include the contents of your attachments.
Code Analysis 95% from 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
Success! There were no dangerous files found in this plugin49,106 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 127 | 1,940 | 13,467 | 49,080 |
Markdown | 1 | 15 | 0 | 26 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,349)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 499)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 138.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,349.00 |
Average method complexity | 9.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 499.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 1 | 2.04% |
▷ Concrete classes | 48 | 97.96% |
▷ Final classes | 0 | 0.00% |
Methods | 839 | |
▷ Static methods | 138 | 16.45% |
▷ Public methods | 543 | 64.72% |
▷ Protected methods | 294 | 35.04% |
▷ Private methods | 2 | 0.24% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 112 | |
▷ Global constants | 107 | 95.54% |
▷ Class constants | 5 | 4.46% |
▷ Public constants | 5 | 100.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 files were detected