78% nfeeds-free-mobile-app

Code Review | NFeeds Free Mobile App Plugin for Android

WordPress plugin NFeeds Free Mobile App Plugin for Android scored78%from 54 tests.

About plugin

  • Plugin page: nfeeds-free-mobil...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2016
  • Latest release: Aug 23, 2019
  • Number of updates: 11
  • Update frequency: every 117.4 days
  • Top authors: tooleap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,240 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.94ms] Passed 4 tests

Server-side resources used by NFeeds Free Mobile App Plugin for Android
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0050.49 ▲12.04
Dashboard /wp-admin3.31 ▲0.0148.03 ▼3.39
Posts /wp-admin/edit.php3.36 ▲0.0049.21 ▼6.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.22 ▼24.83
Media Library /wp-admin/upload.php3.23 ▲0.0036.74 ▼1.39
Mobile App Generator /wp-admin/options-general.php?page=mobile-app-generator3.1831.73

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

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

Browser metrics Passed 4 tests

Checking browser requirements for NFeeds Free Mobile App Plugin for Android
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.38 ▲0.051.76 ▼0.0544.23 ▲0.13
Dashboard /wp-admin2,199 ▲225.66 ▼0.0191.10 ▼0.4238.86 ▼5.65
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0439.87 ▲4.1436.60 ▼2.27
Add New Post /wp-admin/post-new.php1,529 ▼617.45 ▼5.83616.05 ▼52.5352.37 ▼9.51
Media Library /wp-admin/upload.php1,407 ▲44.27 ▲0.0995.08 ▼12.9143.18 ▼4.21
Mobile App Generator /wp-admin/options-general.php?page=mobile-app-generator8152.0424.0626.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mobile-app-generator
    • > Notice in wp-content/plugins/nfeeds-free-mobile-app/nfeeds.php+108
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/nfeeds-free-mobile-app/nfeeds.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

nfeeds-free-mobile-app/nfeeds.php 92% from 13 tests

The entry point to "NFeeds Free Mobile App Plugin for Android" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nfeeds-free-mobile-app.php" instead of "nfeeds.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin120 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13912120

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected