10% flipster

Code Review | Flipster

WordPress plugin Flipster scored10%from 54 tests.

About plugin

  • Plugin page: flipster
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.7.5
  • WordPress version: 6.3.1
  • First release: Aug 31, 2017
  • Latest release: Aug 31, 2017
  • Number of updates: 3
  • Update frequency: every 14.7 days
  • Top authors: pixelmargin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,544 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/flipster/Main.php+125
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.22ms] Passed 4 tests

Analyzing server-side resources used by Flipster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.09 ▲4.03
Dashboard /wp-admin3.31 ▲0.0047.48 ▼7.15
Posts /wp-admin/edit.php3.36 ▲0.0051.22 ▲1.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.43 ▼11.84
Media Library /wp-admin/upload.php3.23 ▲0.0036.53 ▲0.99

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flipster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.031.76 ▲0.0241.29 ▼7.11
Dashboard /wp-admin2,206 ▲184.86 ▼0.16110.48 ▲0.9738.48 ▼5.08
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0339.87 ▲2.8934.50 ▼1.18
Add New Post /wp-admin/post-new.php1,514 ▼017.71 ▲0.10616.92 ▼74.3448.82 ▼6.87
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.04101.80 ▼3.0244.65 ▼3.04

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/flipster/Main.php on line 125
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/flipster/functions.php on line 250
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/flipster/Shortcodes.php:11

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: jquery, coverflow, slider, flipster

flipster/Main.php 92% from 13 tests

The entry point to "Flipster" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("flipster.php" instead of "Main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected417 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP320932415
CSS1001
JavaScript1011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin