90% nepalify

Code Review | Nepalify

WordPress plugin Nepalify scored 90% from 54 tests.

About plugin

  • Plugin page: nepalify
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.3.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.2.2
  • WordPress version: 5.8.1
  • First release: Oct 7, 2018
  • Latest release: Sep 9, 2019
  • Number of updates: 6
  • Update frequency: every 56.2 days
  • Top authors: pbimal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 358 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼156.23ms] Passed 4 tests

This is a short check of server-side resources used by Nepalify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1445.45 ▲23.53
Dashboard /wp-admin3.08 ▲0.0344.58 ▼4.16
Posts /wp-admin/edit.php3.69 ▲0.5856.09 ▲9.88
Add New Post /wp-admin/post-new.php5.44 ▲0.0192.51 ▼633.12
Media Library /wp-admin/upload.php3.03 ▲0.0234.34 ▲2.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
category_children

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nepalify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲12115.88 ▲0.338.06 ▼0.6951.25 ▼4.97
Dashboard /wp-admin2,973 ▲395.91 ▼0.26141.76 ▼15.05121.78 ▲2.05
Posts /wp-admin/edit.php6,733 ▲3,9942.44 ▼0.2671.83 ▼2.26102.77 ▲10.83
Add New Post /wp-admin/post-new.php1,591 ▼9218.77 ▲0.04385.46 ▼41.43115.73 ▲5.09
Media Library /wp-admin/upload.php1,810 ▼05.00 ▼0.03156.01 ▼0.24119.68 ▼3.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 1 option
    • category_children

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: zones, pbimal, nepal, districts, nepalify

nepalify/nepalify.php 92% from 13 tests

The main PHP script in "Nepalify" version 2.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 289 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin224 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11129224

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity3.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin