89% brooklyn-lite-demo-importer

Code Review | Brooklyn Lite Demo Importer

WordPress plugin Brooklyn Lite Demo Importer scored89%from 54 tests.

About plugin

  • Plugin page: brooklyn-lite-dem...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Oct 13, 2020
  • Latest release: Nov 25, 2020
  • Number of updates: 6
  • Update frequency: every 7.2 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,060 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
This plugin's installer ran successfully

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

A check of server-side resources used by Brooklyn Lite Demo Importer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.72 ▼0.98
Dashboard /wp-admin3.32 ▲0.0247.57 ▼3.93
Posts /wp-admin/edit.php3.37 ▲0.0151.32 ▼1.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.95 ▼4.47
Media Library /wp-admin/upload.php3.24 ▲0.0135.70 ▼3.74

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Brooklyn Lite Demo Importer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.491.85 ▲0.0441.02 ▼6.59
Dashboard /wp-admin2,203 ▲154.89 ▼1.01101.11 ▼1.5641.62 ▼7.64
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0238.79 ▼0.0135.63 ▼5.28
Add New Post /wp-admin/post-new.php1,535 ▲1622.89 ▼0.33652.63 ▲0.2152.85 ▲0.89
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.05101.13 ▼14.6945.11 ▼2.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: demo content

brooklyn-lite-demo-importer/brooklyn-lite-demo-importer.php 85% from 13 tests

The primary PHP file in "Brooklyn Lite Demo Importer" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected6,334 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
XML1751166,265
PHP2323769

PHP code Passed 2 tests

Analyzing 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.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
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 1.30MB with 0.79MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
demo-content/previews/agency-hero-thumb.png702.54KB368.26KB▼ 47.58%
demo-content/previews/business-hero-thumb.png629.39KB167.69KB▼ 73.36%