Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▲1.12ms] Passed 4 tests
This is a short check of server-side resources used by WPSwlr
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 40.54 ▲1.92 |
Dashboard /wp-admin | 3.49 ▲0.19 | 46.13 ▼3.79 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 51.14 ▲3.76 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.43 | 101.96 ▲2.59 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.40 ▲4.27 |
All Facebook Posts /wp-admin/edit.php?post_type=wpswlr-facebook-post | 3.47 | 44.68 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpswlr-facebook-post | 3.34 | 38.28 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 120 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
category_children |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WPSwlr
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 13.30 ▼1.08 | 1.65 ▼0.14 | 43.43 ▲2.69 |
Dashboard /wp-admin | 2,245 ▲53 | 4.88 ▼0.05 | 105.70 ▼2.97 | 67.46 ▲21.55 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.01 ▲0.01 | 37.59 ▲2.85 | 34.58 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,566 ▲30 | 18.27 ▼4.97 | 733.62 ▲93.72 | 72.38 ▲21.93 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.16 ▼0.09 | 94.52 ▼4.28 | 45.47 ▲0.74 |
All Facebook Posts /wp-admin/edit.php?post_type=wpswlr-facebook-post | 1,124 | 2.06 | 33.05 | 30.50 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpswlr-facebook-post | 1,485 | 2.15 | 25.96 | 36.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- category_children
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPSWLR\\Facebook\\PostTypes\\FacebookPostTemplate' not found in wp-content/plugins/wpswlr/src/Facebook/PostTypes/FacebookPostTemplateGeneral.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPSWLR\\Facebook\\PostTypes\\FacebookPostTemplate' not found in wp-content/plugins/wpswlr/src/Facebook/PostTypes/FacebookPostTemplateAlbum.php:5
- > PHP Fatal error
Uncaught Error: Interface 'WPSWLR\\Facebook\\Loaders\\FacebookLoader' not found in wp-content/plugins/wpswlr/src/Facebook/Loaders/PostsLoader.php:14
- > PHP Fatal error
Uncaught Error: Class 'WPSWLR\\Facebook\\PostTypes\\FacebookPostTemplate' not found in wp-content/plugins/wpswlr/src/Facebook/PostTypes/FacebookPostTemplateVideo.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPSWLR\\Facebook\\Exceptions\\FacebookException' not found in wp-content/plugins/wpswlr/src/Facebook/Exceptions/FacebookClientException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'WPSWLR\\Facebook\\Loaders\\FacebookLoader' not found in wp-content/plugins/wpswlr/src/Facebook/Loaders/InfoLoader.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPSWLR\\Core\\Settings\\AbstractSettings' not found in wp-content/plugins/wpswlr/src/Core/Settings/FacebookOptions.php:22
- > PHP Fatal error
Uncaught Error: Interface 'WPSWLR\\Core\\InitListener' not found in wp-content/plugins/wpswlr/src/Facebook/Services/FacebookLoaderService.php:21
- > PHP Fatal error
Uncaught Error: Interface 'WPSWLR\\Core\\InitListener' not found in wp-content/plugins/wpswlr/src/Admin/PluginSettings.php:10
- > PHP Fatal error
Uncaught Error: Class 'WPSWLR\\Core\\Settings\\AbstractSettings' not found in wp-content/plugins/wpswlr/src/Core/Settings/FacebookInfo.php:13
- > 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 Passed 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: integration, feed, posts, facebook
wpswlr/wpswlr.php Passed 13 tests
The main file in "WPSwlr" v. 1.2.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
Load posts from your Facebook Page feed to the WordPress website in a simple way.
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
Everything looks great! No dangerous files found in this plugin5,659 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 638 | 1,153 | 3,205 |
TypeScript | 31 | 156 | 12 | 1,740 |
Sass | 7 | 44 | 4 | 314 |
JavaScript | 4 | 8 | 36 | 186 |
CSS | 4 | 15 | 12 | 89 |
JSON | 4 | 0 | 0 | 78 |
SVG | 1 | 0 | 0 | 47 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 2 | 5.56% |
▷ Concrete classes | 34 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 236 | |
▷ Static methods | 45 | 19.07% |
▷ Public methods | 192 | 81.36% |
▷ Protected methods | 15 | 6.36% |
▷ Private methods | 29 | 12.29% |
Functions | 20 | |
▷ Named functions | 5 | 25.00% |
▷ Anonymous functions | 15 | 75.00% |
Constants | 40 | |
▷ Global constants | 5 | 12.50% |
▷ Class constants | 35 | 87.50% |
▷ Public constants | 35 | 100.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
14 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src-ui/public/logo-96.png | 3.91KB | 2.28KB | ▼ 41.58% |
src-ui/public/logo-128.png | 5.38KB | 2.88KB | ▼ 46.51% |
assets/admin/logo-196.png | 8.44KB | 3.97KB | ▼ 53.00% |
assets/admin/logo-32.png | 1.31KB | 0.93KB | ▼ 29.25% |
assets/admin/logo-16.png | 0.69KB | 0.51KB | ▼ 26.21% |