94% latest-post-accordian-slider

Code Review | Latest Post Accordian Slider

WordPress plugin Latest Post Accordian Slider scored 94% from 54 tests.

About plugin

  • Plugin page: latest-post-accor...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5
  • WordPress version: 5.8.1
  • First release: Dec 28, 2013
  • Latest release: Jan 5, 2014
  • Number of updates: 31
  • Update frequency: every 0.3 days
  • Top authors: Anop Goswami (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 4,258 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1434.89 ▲17.11
Dashboard /wp-admin3.08 ▲0.0351.52 ▲13.42
Posts /wp-admin/edit.php3.13 ▲0.0345.95 ▲0.37
Add New Post /wp-admin/post-new.php5.45 ▲0.0197.53 ▼571.91
Media Library /wp-admin/upload.php3.02 ▲0.0233.01 ▼9.09
LPA /wp-admin/options-general.php?page=lpaccordian2.9929.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲17516.21 ▲0.6015.61 ▲7.1952.86 ▲4.97
Dashboard /wp-admin2,969 ▲386.03 ▲0.07135.39 ▼9.07114.00 ▲3.32
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0167.70 ▲3.2289.08 ▼10.98
Add New Post /wp-admin/post-new.php1,686 ▲318.82 ▲0.04378.07 ▼3.57105.65 ▼7.47
Media Library /wp-admin/upload.php1,812 ▲55.01 ▲0.00161.06 ▼0.43122.16 ▼5.63
LPA /wp-admin/options-general.php?page=lpaccordian1,1422.2258.6879.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript311962280
PHP26717138
CSS26176
HTML1001

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 code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png16.65KB5.37KB▼ 67.73%
screenshot-2.png372.35KB92.68KB▼ 75.11%