Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼141.80ms] Passed 4 tests
An overview of server-side resources used by Latest Post Accordian Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 34.89 ▲17.11 |
Dashboard /wp-admin | 3.08 ▲0.03 | 51.52 ▲13.42 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 45.95 ▲0.37 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 97.53 ▼571.91 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.01 ▼9.09 |
LPA /wp-admin/options-general.php?page=lpaccordian | 2.99 | 29.72 |
Server storage [IO: ▲0.51MB] [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: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
lpa_content_length |
lpa_height |
lpa_postlimit |
lpa_speed |
lpa_autocollapse |
lpa_width |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Latest Post Accordian Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,771 ▲175 | 16.21 ▲0.60 | 15.61 ▲7.19 | 52.86 ▲4.97 |
Dashboard /wp-admin | 2,969 ▲38 | 6.03 ▲0.07 | 135.39 ▼9.07 | 114.00 ▲3.32 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.01 | 67.70 ▲3.22 | 89.08 ▼10.98 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.82 ▲0.04 | 378.07 ▼3.57 | 105.65 ▼7.47 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▲0.00 | 161.06 ▼0.43 | 122.16 ▼5.63 |
LPA /wp-admin/options-general.php?page=lpaccordian | 1,142 | 2.22 | 58.68 | 79.61 |
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
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/latest-post-accordian-slider/lpaccordian.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: content-slider, wp-accordian, accordian-slider, latest-post, wordpress-slider-plugin
latest-post-accordian-slider/lpaccordian.php 92% from 13 tests
The principal PHP file in "Latest Post Accordian Slider" v. 1.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("latest-post-accordian-slider.php" instead of "lpaccordian.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin495 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 119 | 62 | 280 |
PHP | 2 | 67 | 17 | 138 |
CSS | 2 | 6 | 1 | 76 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.38MB with 0.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 16.65KB | 5.37KB | ▼ 67.73% |
screenshot-2.png | 372.35KB | 92.68KB | ▼ 75.11% |