93% friday-news-lite-toolkit

Code Review | Friday News Lite Toolkit

WordPress plugin Friday News Lite Toolkit scored 93% from 54 tests.

About plugin

  • Plugin page: friday-news-lite-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4.2
  • WordPress version: 5.8.1
  • First release: Apr 6, 2016
  • Latest release: Apr 6, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: KOPATHEME Support (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 779 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼140.69ms] Passed 4 tests

Analyzing server-side resources used by Friday News Lite Toolkit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1528.71 ▲3.12
Dashboard /wp-admin3.09 ▲0.0348.48 ▲1.56
Posts /wp-admin/edit.php3.15 ▲0.0346.53 ▲1.83
Add New Post /wp-admin/post-new.php5.45 ▲0.0188.82 ▼567.15
Media Library /wp-admin/upload.php3.04 ▲0.0331.38 ▲0.99

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Friday News Lite Toolkit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.79 ▲0.197.88 ▼0.8147.27 ▼4.57
Dashboard /wp-admin2,967 ▲305.91 ▼0.03146.78 ▼0.70116.94 ▼0.79
Posts /wp-admin/edit.php2,739 ▲32.69 ▲0.0172.24 ▲4.2992.22 ▼2.73
Add New Post /wp-admin/post-new.php1,604 ▼2,04918.82 ▼0.06393.22 ▼101.54119.22 ▲3.52
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.01160.92 ▲2.06122.88 ▼6.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Everything seems fine, however this is by no means 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
  • 28× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require(): Failed opening required 'FT_PATHinc/widgets/social/tweets-list.php' (include_path='.:/usr/share/php') in wp-content/plugins/friday-news-lite-toolkit/inc/widget.php on line 3
    • > PHP Warning
      require(FT_PATHinc/fields/metabox/quote.php): failed to open stream: No such file or directory in wp-content/plugins/friday-news-lite-toolkit/inc/field.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/friday-news-lite-toolkit/inc/shortcodes/grid.php:3
    • > PHP Warning
      Use of undefined constant FT_PATH - assumed 'FT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/friday-news-lite-toolkit/inc/widget.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/friday-news-lite-toolkit/inc/shortcodes/dropcaps.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/friday-news-lite-toolkit/inc/shortcodes/accordions.php:3
    • > PHP Warning
      Use of undefined constant FT_PATH - assumed 'FT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/friday-news-lite-toolkit/inc/field.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/friday-news-lite-toolkit/inc/shortcodes/gallery.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friday-news-lite-toolkit/inc/shortcode.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friday-news-lite-toolkit/inc/widgets/social/follow-us.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
There were not plugin tags detected

friday-news-lite-toolkit/friday-news-lite-toolkit.php 85% from 13 tests

"Friday News Lite Toolkit" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.8")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
There were no executable files found in this plugin2,160 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP29233971,719
JavaScript250395
CSS20046

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.86
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods53
▷ Static methods1324.53%
▷ Public methods5196.23%
▷ Protected methods00.00%
▷ Private methods23.77%
Functions23
▷ Named functions23100.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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 1.57MB with 0.87MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/layouts/product.png707.55KB289.15KB▼ 59.13%
assets/images/tinymce.png1.77KB0.94KB▼ 46.94%
assets/images/layouts/shop.png901.64KB361.61KB▼ 59.89%