83% wopo-notepad

Code Review | WoPo Notepad

WordPress plugin WoPo Notepad scored83%from 54 tests.

About plugin

  • Plugin page: wopo-notepad
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Jul 7, 2021
  • Latest release: Jul 7, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: thanhbinh8703 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /463 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.01MB] [CPU: ▲0.34ms] Passed 4 tests

A check of server-side resources used by WoPo Notepad
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.72 ▲4.05
Dashboard /wp-admin3.32 ▲0.0155.94 ▲8.52
Posts /wp-admin/edit.php3.37 ▲0.0146.29 ▲1.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.36 ▼0.42
Media Library /wp-admin/upload.php3.24 ▲0.0134.04 ▼3.94

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WoPo Notepad
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.181.76 ▲0.0846.41 ▲8.77
Dashboard /wp-admin2,209 ▲215.86 ▼0.0499.06 ▼9.7637.90 ▼5.22
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0433.75 ▼2.3033.47 ▼1.12
Add New Post /wp-admin/post-new.php1,535 ▲223.06 ▼0.13677.62 ▲32.7155.06 ▲0.81
Media Library /wp-admin/upload.php1,388 ▲64.19 ▼0.0198.56 ▲1.5744.91 ▼0.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 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/wopo-notepad/wopo-notepad.php:21

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: web-app, app, html5, windows xp, online...

wopo-notepad/wopo-notepad.php 77% from 13 tests

Analyzing the main PHP file in "WoPo Notepad" version 1.0.0
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "5.2")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.2.4" instead of "7.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected25,867 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript252,8427,52124,388
CSS75667970
SVG100278
HTML230184
PHP141439
Markdown1808

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin