Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/pataphysics/widget-date.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Pataphysics_Date_Widget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼54.86ms] Passed 4 tests
Analyzing server-side resources used by Pataphysics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 9.32 ▼31.33 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.57 ▼41.60 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.47 ▼46.73 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.30 ▼99.79 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.73 ▼30.53 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_wp_pataphysics_date_widget |
Browser metrics Passed 4 tests
Pataphysics: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.09 | 1.82 ▲0.03 | 44.06 ▼0.05 |
Dashboard /wp-admin | 2,206 ▲18 | 5.82 ▲0.95 | 102.51 ▼2.44 | 37.34 ▼6.70 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▼0.01 | 38.81 ▼2.19 | 34.84 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 23.19 ▲0.16 | 637.98 ▼55.45 | 48.60 ▼5.41 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.01 | 92.44 ▼13.74 | 41.33 ▼6.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/pataphysics/widget-date.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Pataphysics_Date_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_wp_pataphysics_date_widget
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pataphysics/pataphysics-shortcodes.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pataphysics/pataphysics.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pataphysics/widget-date.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: widget, shortcode
pataphysics/pataphysics.php Passed 13 tests
The entry point to "Pataphysics" version 1.1 is a PHP file that has certain tags in its header comment area
78 characters long description:
Enable a shortcode which displays dates according to the Pataphysical Calendar
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
Good job! No executable or dangerous file extensions detected720 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 21 | 5 | 560 |
PHP | 3 | 28 | 36 | 122 |
PO File | 1 | 2 | 2 | 21 |
Markdown | 1 | 9 | 0 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin