84% nepali-media

Code Review | Nepali Media

WordPress plugin Nepali Media scored84%from 54 tests.

About plugin

  • Plugin page: nepali-media
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 12, 2018
  • Latest release: Oct 12, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: pbimal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Server-side resources used by Nepali Media
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.12 ▼5.42
Dashboard /wp-admin3.31 ▲0.0144.24 ▼3.58
Posts /wp-admin/edit.php3.36 ▲0.0144.19 ▼0.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.29 ▼13.93
Media Library /wp-admin/upload.php3.24 ▲0.0133.76 ▼1.14

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nepali Media
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.34 ▼0.221.54 ▼0.2740.79 ▼3.04
Dashboard /wp-admin2,210 ▲305.59 ▼0.0579.76 ▼19.0839.22 ▼7.44
Posts /wp-admin/edit.php2,112 ▲91.97 ▲0.0133.39 ▼5.4533.50 ▲1.52
Add New Post /wp-admin/post-new.php1,538 ▲1222.88 ▼0.29682.41 ▲16.7157.74 ▲0.60
Media Library /wp-admin/upload.php1,412 ▲94.22 ▲0.0496.57 ▼0.0845.57 ▲2.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/nepali-media/index.php
    • > /wp-content/plugins/nepali-media/media_websites.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: nepali, media

nepali-media/nepali-media.php Passed 13 tests

The main file in "Nepali Media" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
List of popular/registered Nepali media websites. Important: You will need SQLite3 database extension.

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
Good job! No executable or dangerous file extensions detected74 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP310874

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin