84% deploy-netlifypress

Code Review | Deploy with NetlifyPress

WordPress plugin Deploy with NetlifyPress scored84%from 54 tests.

About plugin

  • Plugin page: deploy-netlifypress
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 28, 2019
  • Latest release: Oct 19, 2020
  • Number of updates: 9
  • Update frequency: every 46.6 days
  • Top authors: nfmohit (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /5,516 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.06ms] Passed 4 tests

This is a short check of server-side resources used by Deploy with NetlifyPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.75 ▲1.38
Dashboard /wp-admin3.41 ▲0.0744.52 ▼11.58
Posts /wp-admin/edit.php3.46 ▲0.1148.77 ▲6.42
Add New Post /wp-admin/post-new.php5.99 ▲0.1192.31 ▼11.72
Media Library /wp-admin/upload.php3.34 ▲0.1135.89 ▲1.68

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Deploy with NetlifyPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10313.70 ▼0.701.75 ▲0.2344.96 ▲7.27
Dashboard /wp-admin2,258 ▲725.81 ▲0.90102.78 ▼15.2639.22 ▼6.14
Posts /wp-admin/edit.php2,138 ▲492.03 ▼0.0640.80 ▲0.1834.65 ▼2.07
Add New Post /wp-admin/post-new.php1,552 ▲818.12 ▼0.23627.09 ▼13.3751.24 ▼7.57
Media Library /wp-admin/upload.php1,438 ▲534.24 ▲0.02103.52 ▼1.9043.68 ▼1.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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 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 take a closer look at the following
  • 2× 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/deploy-netlifypress/includes/admin/admin.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deploy-netlifypress/includes/assets.php:24

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
3 plugin tags: automation, netlify, deployment

deploy-netlifypress/deploy-netlifypress.php Passed 13 tests

The main file in "Deploy with NetlifyPress" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
Seamlessly trigger deploys in Netlify from WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected15,413 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
SVG2008,745
JavaScript61,6302,6966,220
PHP7130144447
CSS11141

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin