84% pse-pornoscraperexecutor

Code Review | PSE PornoScraperExecutor (Pornhub)

WordPress plugin PSE PornoScraperExecutor (Pornhub) scored84%from 54 tests.

About plugin

  • Plugin page: pse-pornoscrapere...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.8
  • WordPress version: 6.3.1
  • First release: Sep 13, 2017
  • Latest release: Sep 17, 2017
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: wmoisesd (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /6,412 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼19.48ms] Passed 4 tests

This is a short check of server-side resources used by PSE PornoScraperExecutor (Pornhub)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.13 ▲1.19
Dashboard /wp-admin3.33 ▼0.0250.19 ▼9.93
Posts /wp-admin/edit.php3.38 ▲0.0249.57 ▼5.78
Add New Post /wp-admin/post-new.php3.14 ▼2.7435.13 ▼61.16
Media Library /wp-admin/upload.php3.25 ▲0.0233.17 ▼1.03

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by PSE PornoScraperExecutor (Pornhub)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.72 ▲0.381.93 ▲0.1739.86 ▼0.74
Dashboard /wp-admin2,194 ▲205.59 ▲0.0296.97 ▲11.7642.28 ▲0.16
Posts /wp-admin/edit.php2,108 ▲51.99 ▼0.0035.96 ▼5.8335.55 ▼4.97
Add New Post /wp-admin/post-new.php1,538 ▲1222.99 ▲0.01683.76 ▲13.2248.17 ▼11.62
Media Library /wp-admin/upload.php1,408 ▲54.30 ▲0.1393.77 ▼3.9540.85 ▼8.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix 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/pse-pornoscraperexecutor/PSE.php:283

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: scrapping, embed, auto, porn, xxx...

pse-pornoscraperexecutor/PSE.php 92% from 13 tests

The principal PHP file in "PSE PornoScraperExecutor (Pornhub)" v. 1.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pse-pornoscraperexecutor.php" instead of "PSE.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
Good job! No executable or dangerous file extensions detected187 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17923187

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin