10% poros-slider

Code Review | Poros Slider

WordPress plugin Poros Slider scored10%from 54 tests.

About plugin

  • Plugin page: poros-slider
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 17, 2012
  • Latest release: Nov 14, 2012
  • Number of updates: 13
  • Update frequency: every 4.5 days
  • Top authors: jleo2255 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,960 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/poros-slider/includes/porosadmin.php+926
    Function create_function() is deprecated

Server metrics [RAM: ▼1.68MB] [CPU: ▼55.68ms] Passed 4 tests

A check of server-side resources used by Poros Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.64 ▼41.11
Dashboard /wp-admin2.41 ▼0.897.60 ▼48.50
Posts /wp-admin/edit.php2.41 ▼0.957.19 ▼43.31
Add New Post /wp-admin/post-new.php2.41 ▼3.487.89 ▼89.78
Media Library /wp-admin/upload.php2.41 ▼0.826.84 ▼27.45

Server storage [IO: ▲0.89MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Poros Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.71 ▲0.481.78 ▲0.1145.58 ▲2.21
Dashboard /wp-admin2,210 ▲395.77 ▲0.1789.34 ▼10.5369.99 ▲21.91
Posts /wp-admin/edit.php2,118 ▲182.04 ▼0.0834.50 ▼4.1431.75 ▼3.23
Add New Post /wp-admin/post-new.php1,539 ▼617.48 ▼5.88779.39 ▲81.9553.24 ▼9.49
Media Library /wp-admin/upload.php1,418 ▲154.09 ▼0.16109.16 ▲4.2980.27 ▲34.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/poros-slider/includes/porosadmin.php+926
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/poros-slider/uninstall.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poros-slider/includes/porosadmin.php:926
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poros-slider/includes/porosclient.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/poros-slider/poroslider.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
9 plugin tags: show, presentation, slide, slider, poros...

poros-slider/poroslider.php 92% from 13 tests

Analyzing the main PHP file in "Poros Slider" version 1.0.1
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("poros-slider.php" instead of "poroslider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,335 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP4163177695
JavaScript113457490
CSS3360150

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.70MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/buttons/forwardnavpressed.png49.30KB1.52KB▼ 96.93%
assets/buttons/backnav.png47.85KB0.51KB▼ 98.94%
assets/images/poros_logo.png53.71KB1.16KB▼ 97.84%
assets/buttons/downnav.png47.62KB0.49KB▼ 98.96%
assets/images/poros_logo_small.fw.png48.95KB0.33KB▼ 99.33%