Benchmarks
Plugin footprint Passed 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.25MB] [CPU: ▼288.55ms] Passed 4 tests
An overview of server-side resources used by Social Mentions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.31 | 56.79 ▲5.78 |
Dashboard /wp-admin | 3.68 ▲0.27 | 35.17 ▲1.66 |
Posts /wp-admin/edit.php | 3.91 ▲0.26 | 38.80 ▲1.67 |
Add New Post /wp-admin/post-new.php | 7.16 ▲0.18 | 93.27 ▼1,160.78 |
Media Library /wp-admin/upload.php | 3.57 ▲0.27 | 28.48 ▲3.26 |
Google+ Feed /wp-admin/edit.php?post_type=socment-googleplus | 3.67 | 29.18 |
Flickr Feed /wp-admin/edit.php?post_type=socment-flickr | 3.67 | 26.17 |
Hashtags /wp-admin/edit-tags.php?taxonomy=socment-hashtags | 3.56 | 26.39 |
Instagram Feed /wp-admin/edit.php?post_type=socment-instagram | 3.67 | 27.50 |
Settings /wp-admin/admin.php?page=social-mentions-settings | 3.51 | 24.53 |
Twitter Feed /wp-admin/edit.php?post_type=socment-twitter | 3.67 | 25.68 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Social Mentions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,880 ▲158 | 16.21 ▲0.46 | 6.31 ▼0.45 | 2.50 ▲0.38 |
Dashboard /wp-admin | 2,961 ▲100 | 6.17 ▼0.01 | 118.39 ▼17.86 | 155.51 ▼6.02 |
Posts /wp-admin/edit.php | 2,760 ▲66 | 3.24 ▲0.00 | 64.11 ▲2.04 | 136.03 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,763 ▲67 | 17.56 ▼3.51 | 399.53 ▼63.12 | 153.32 ▼1.99 |
Media Library /wp-admin/upload.php | 1,764 ▲63 | 5.53 ▲0.08 | 146.45 ▲5.75 | 188.44 ▲2.90 |
Google+ Feed /wp-admin/edit.php?post_type=socment-googleplus | 1,440 | 3.16 | 69.75 | 125.13 |
Flickr Feed /wp-admin/edit.php?post_type=socment-flickr | 1,445 | 3.17 | 61.29 | 111.84 |
Hashtags /wp-admin/edit-tags.php?taxonomy=socment-hashtags | 1,656 | 2.79 | 56.59 | 116.44 |
Instagram Feed /wp-admin/edit.php?post_type=socment-instagram | 1,442 | 3.16 | 59.74 | 116.40 |
Settings /wp-admin/admin.php?page=social-mentions-settings | 1,564 | 2.40 | 53.53 | 125.62 |
Twitter Feed /wp-admin/edit.php?post_type=socment-twitter | 1,445 | 2.92 | 59.57 | 113.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=social-mentions-settings
- > Notice in wp-content/plugins/social-mentions/settings/options.php+343
Trying to access array offset on value of type bool
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 take a closer look at the following
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-mentions/settings/options.php:180
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/social-mentions/settings/shortcode.php:144
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-mentions/settings/create-user.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-mentions/settings/admin-menus.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-mentions/settings/meta-boxes.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-mentions/settings/custom-posts.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-mentions/settings/cron.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: flickr, google, google plus, social media, hashtag...
social-mentions/social-mentions.php 92% from 13 tests
Analyzing the main PHP file in "Social Mentions" version 1.0.3
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
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 detected9,887 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 12 | 13 | 2,407 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 13 | 148 | 104 | 1,281 |
JavaScript | 2 | 2 | 12 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 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
No PNG images were found in this plugin