Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼7.50ms] Passed 4 tests
A check of server-side resources used by WP Flexslider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.43 ▲2.91 |
Dashboard /wp-admin | 3.43 ▲0.08 | 46.65 ▼14.59 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 46.18 ▼6.53 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 82.95 ▼11.77 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.74 ▲6.09 |
WP Flexslider /wp-admin/options-general.php?page=wp-flexslider | 3.32 | 32.39 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Flexslider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.22 ▼1.16 | 1.63 ▼0.09 | 43.16 ▲1.05 |
Dashboard /wp-admin | 2,213 ▲28 | 4.85 ▼1.06 | 110.04 ▲0.16 | 42.66 ▼1.85 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▼0.00 | 36.23 ▼4.97 | 34.19 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 17.51 ▼5.53 | 701.75 ▲98.33 | 51.12 ▲0.93 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.23 ▼0.04 | 110.40 ▲13.59 | 48.74 ▲5.69 |
WP Flexslider /wp-admin/options-general.php?page=wp-flexslider | 935 | 2.02 | 28.72 | 29.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-flexslider/inc/public/main.php:34
- > 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: gallery, flexslider, slider
wp-flexslider/wp-flexslider.php Passed 13 tests
The main file in "WP Flexslider" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
32 characters long description:
Flexslider for WordPress Gallery
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,006 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 147 | 134 | 980 |
PHP | 6 | 147 | 229 | 577 |
CSS | 3 | 6 | 38 | 277 |
PO File | 1 | 29 | 38 | 75 |
Sass | 2 | 6 | 3 | 67 |
SVG | 1 | 0 | 0 | 19 |
JSON | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 4 | 11.76% |
▷ Public methods | 33 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.94% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg_play_pause.png | 1.51KB | 0.52KB | ▼ 65.52% |