84% embed-hackpad-documents

Code Review | Embed Hackpad Documents

WordPress plugin Embed Hackpad Documents scored 84% from 54 tests.

About plugin

  • Plugin page: embed-hackpad-doc...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.5
  • WordPress version: 6.3.1
  • First release: Jul 5, 2016
  • Latest release: Jul 6, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: shadyvb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 764 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.02ms] Passed 4 tests

A check of server-side resources used by Embed Hackpad Documents
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.05 ▼8.46
Dashboard /wp-admin3.31 ▲0.0145.45 ▼1.87
Posts /wp-admin/edit.php3.36 ▲0.0148.48 ▲2.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.51 ▼13.46
Media Library /wp-admin/upload.php3.23 ▲0.0032.19 ▼4.29

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Embed Hackpad Documents
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.15 ▼1.241.93 ▲0.2042.76 ▼8.11
Dashboard /wp-admin2,206 ▲244.83 ▼0.06110.90 ▲0.2042.08 ▼6.18
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0139.97 ▼0.6334.98 ▼0.76
Add New Post /wp-admin/post-new.php1,533 ▲1923.29 ▲5.71613.47 ▲7.2655.96 ▲11.53
Media Library /wp-admin/upload.php1,391 ▼04.19 ▲0.02106.14 ▲9.9444.46 ▲0.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HMN\\Hackpad\\add_action() in wp-content/plugins/embed-hackpad-documents/embed-hackpad-documents.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: embed, hackpad

embed-hackpad-documents/embed-hackpad-documents.php Passed 13 tests

Analyzing the main PHP file in "Embed Hackpad Documents" version 1.0.1
36 characters long description:
Embed Hackpad documents in WordPress

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
There were no executable files found in this plugin16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192316

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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
Namespaces1
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin