83% wopo-web-torrent

Code Review | WoPo Web Torrent

WordPress plugin WoPo Web Torrent scored83%from 54 tests.

About plugin

  • Plugin page: wopo-web-torrent
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Sep 8, 2021
  • Latest release: Sep 11, 2021
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: thanhbinh8703 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /694 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WoPo Web Torrent
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.76 ▲1.08
Dashboard /wp-admin3.31 ▲0.0045.31 ▼4.31
Posts /wp-admin/edit.php3.36 ▲0.0040.81 ▼1.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.42 ▼25.29
Media Library /wp-admin/upload.php3.23 ▲0.0035.88 ▲2.64

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WoPo Web Torrent
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.291.81 ▲0.0143.58 ▲0.94
Dashboard /wp-admin2,198 ▲235.62 ▼0.0996.31 ▼14.2741.64 ▼4.62
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0735.80 ▼5.1437.44 ▼2.00
Add New Post /wp-admin/post-new.php1,526 ▼923.72 ▲5.21654.99 ▲32.4956.81 ▼6.36
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.0692.23 ▼5.0541.62 ▼0.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wopo-web-torrent/wopo-web-torrent.php:17

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: wopo, p2p, peer to peer, torrent, file sharing...

wopo-web-torrent/wopo-web-torrent.php 77% from 13 tests

This is the main PHP file of "WoPo Web Torrent" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.2")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.2.4" instead of "7.2")

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
There were no executable files found in this plugin139 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript213988
PHP171429
CSS10022

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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