89% wp-swiper

Code Review | WP Swiper

WordPress plugin WP Swiper scored89%from 54 tests.

About plugin

  • Plugin page: wp-swiper
  • Plugin version: 1.0.34
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2014
  • Latest release: Oct 14, 2023
  • Number of updates: 58
  • Update frequency: every 60.6 days
  • Top authors: digitalapps (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active /22,925 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.20ms] Passed 4 tests

A check of server-side resources used by WP Swiper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.19 ▼4.87
Dashboard /wp-admin3.35 ▲0.0560.41 ▲4.49
Posts /wp-admin/edit.php3.46 ▲0.1148.86 ▼3.03
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.18 ▼5.38
Media Library /wp-admin/upload.php3.27 ▲0.0445.36 ▲8.92

Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Swiper
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.20 ▼0.112.90 ▲0.5442.62 ▼3.74
Dashboard /wp-admin2,198 ▲275.68 ▲0.0890.39 ▼10.5642.19 ▼5.96
Posts /wp-admin/edit.php2,100 ▼32.19 ▲0.1834.50 ▼2.6134.00 ▼3.18
Add New Post /wp-admin/post-new.php6,376 ▲4,83124.13 ▲1.05919.14 ▲222.6736.52 ▼22.79
Media Library /wp-admin/upload.php1,400 ▼04.28 ▼0.06109.21 ▼10.1742.62 ▼6.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-swiper === )
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in wp-swiper/assets to your readme.txt
You can look at the official readme.txt

wp-swiper/wp-swiper.php 85% from 13 tests

"WP Swiper" version 1.0.34's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin244 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP9108286238
CSS31113
JavaScript31133

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.07
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.15
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected