Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.87MB] [CPU: ▲1.12ms] Passed 4 tests
An overview of server-side resources used by Recently
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.89 | 41.49 ▲0.15 |
Dashboard /wp-admin | 4.17 ▲0.86 | 49.50 ▲3.12 |
Posts /wp-admin/edit.php | 4.22 ▲0.86 | 49.33 ▲1.39 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.88 | 85.21 ▼0.19 |
Media Library /wp-admin/upload.php | 4.10 ▲0.86 | 42.77 ▲9.27 |
Recently /wp-admin/options-general.php?page=recently | 4.19 | 36.95 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 89 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
recently_rand |
can_compress_scripts |
widget_recently |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
recently_config |
recently_ver |
Browser metrics Passed 4 tests
An overview of browser requirements for Recently
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.07 ▼0.28 | 1.95 ▲0.38 | 39.84 ▼7.76 |
Dashboard /wp-admin | 2,196 ▲16 | 5.56 ▼0.08 | 82.70 ▼18.37 | 37.03 ▼5.32 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.02 | 33.77 ▼2.89 | 33.04 ▼1.02 |
Add New Post /wp-admin/post-new.php | 6,370 ▲4,832 | 27.59 ▲4.27 | 891.52 ▲244.97 | 54.73 ▲1.07 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▼0.03 | 92.50 ▼8.17 | 39.49 ▼6.58 |
Recently /wp-admin/options-general.php?page=recently | 1,368 | 2.16 | 33.87 | 34.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/recently/uninstall.php+70
rmdir(wp-content/uploads/recently): Directory not empty
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recently
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/recently/src/Admin/admin-page.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recently/src/Widget/Widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'Recently\\REST\\Endpoint' not found in wp-content/plugins/recently/src/REST/ThemesEndpoint.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/recently/src/REST/Endpoint.php:6
- > PHP Notice
Undefined variable: current in wp-content/plugins/recently/src/Admin/screen-tools.php on line 2
- > PHP Fatal error
Uncaught Error: Interface 'Recently\\Container\\ContainerConfigurationInterface' not found in wp-content/plugins/recently/src/Container/RecentlyConfiguration.php:11
- > PHP Fatal error
Uncaught Error: Class 'Recently\\REST\\Endpoint' not found in wp-content/plugins/recently/src/REST/ThumbnailsEndpoint.php:4
- > PHP Notice
Undefined variable: current in wp-content/plugins/recently/src/Admin/screen-debug.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Recently\\REST\\Endpoint' not found in wp-content/plugins/recently/src/REST/WidgetEndpoint.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/recently/src/Widget/form.php:2
- > PHP Fatal error
Uncaught Error: Class 'Recently\\Block\\Block' not found in wp-content/plugins/recently/src/Block/Widget/Widget.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: recent, widget, posts, recently
recently/recently.php 92% from 13 tests
The main PHP script in "Recently" version 4.0.2 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
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
No dangerous file extensions were detected9,088 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 977 | 1,971 | 4,064 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 9 | 154 | 22 | 1,170 |
CSS | 14 | 129 | 31 | 693 |
JSON | 10 | 0 | 0 | 490 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 22.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 26 | |
▷ Abstract classes | 2 | 7.69% |
▷ Concrete classes | 24 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 163 | |
▷ Static methods | 19 | 11.66% |
▷ Public methods | 129 | 79.14% |
▷ Protected methods | 3 | 1.84% |
▷ Private methods | 31 | 19.02% |
Functions | 23 | |
▷ Named functions | 2 | 8.70% |
▷ Anonymous functions | 21 | 91.30% |
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