84% wp-tabular-post-slider

Code Review | WP Tabular Post Slider

WordPress plugin WP Tabular Post Slider scored84%from 54 tests.

About plugin

  • Plugin page: wp-tabular-post-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: May 14, 2015
  • Number of updates: 13
  • Update frequency: every 8.7 days
  • Top authors: Mritunjay Datt Tiwari (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,897 total downloads

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.13MB] [CPU: ▼11.98ms] Passed 4 tests

Analyzing server-side resources used by WP Tabular Post Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1950.56 ▲10.02
Dashboard /wp-admin3.46 ▲0.0751.12 ▼10.65
Posts /wp-admin/edit.php3.55 ▲0.1647.64 ▼19.60
Add New Post /wp-admin/post-new.php6.15 ▲0.2284.92 ▼18.62
Media Library /wp-admin/upload.php3.39 ▲0.1236.32 ▲0.97

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Tabular Post Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,161 ▲39015.39 ▲1.0436.83 ▲33.9942.29 ▼3.71
Dashboard /wp-admin2,215 ▲355.54 ▼0.0685.95 ▼3.1738.82 ▼1.39
Posts /wp-admin/edit.php2,120 ▲411.97 ▼0.0433.52 ▼3.1138.17 ▲2.85
Add New Post /wp-admin/post-new.php1,378 ▼14816.87 ▼6.95527.56 ▼173.7739.46 ▼14.54
Media Library /wp-admin/upload.php1,420 ▲174.11 ▼0.1387.38 ▼11.8939.06 ▼9.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-tabular-post-slider/wp-tabular-post-slider.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: tpsbc, category slider, tabular posts, post by category, post slider

wp-tabular-post-slider/wp-tabular-post-slider.php Passed 13 tests

The entry point to "WP Tabular Post Slider" version 1.0 is a PHP file that has certain tags in its header comment area
123 characters long description:
this plugin is used to show your post by category as slider in tabular format. to use this plugin use shortcode as [TPSBC]

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,042 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS22335823
PHP11030205
JavaScript22314

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected