Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.87ms] Passed 4 tests
An overview of server-side resources used by f(x) Share
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.88 ▼2.12 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.75 ▼4.87 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 44.27 ▼2.46 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.31 ▲2.22 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.73 ▲1.98 |
Server storage [IO: ▲0.05MB] [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: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for f(x) Share
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.07 | 1.69 ▲0.18 | 42.85 ▲3.67 |
Dashboard /wp-admin | 2,192 ▲15 | 5.57 ▼0.05 | 82.38 ▼5.22 | 39.66 ▼3.36 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.01 | 39.09 ▲2.27 | 34.71 ▲1.55 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.16 ▲0.02 | 666.42 ▼11.62 | 62.61 ▲3.57 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.13 | 104.04 ▲5.89 | 46.49 ▼2.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fx-share/includes/setup.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/fx-share/includes/customizer-controls.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fx-share/includes/customizer.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/fx-share/fx-share.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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: spam, comments
fx-share/fx-share.php Passed 13 tests
This is the main PHP file of "f(x) Share" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
94 characters long description:
Simple sharing plugin. Easily add Facebook, Twitter, and Google+ share button to your content.
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin576 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 145 | 214 | 426 |
CSS | 3 | 7 | 1 | 113 |
JavaScript | 1 | 11 | 9 | 25 |
SVG | 1 | 1 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin