84% fikraticker

Code Review | FikraTicker

WordPress plugin FikraTicker scored84%from 54 tests.

About plugin

  • Plugin page: fikraticker
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jan 6, 2013
  • Latest release: Nov 8, 2013
  • Number of updates: 9
  • Update frequency: every 34.0 days
  • Top authors: FikraTech (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /15,048 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.21ms] Passed 4 tests

An overview of server-side resources used by FikraTicker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.30 ▲1.85
Dashboard /wp-admin3.34 ▼0.0152.68 ▼14.45
Posts /wp-admin/edit.php3.39 ▲0.0350.20 ▼1.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.84 ▲2.08
Media Library /wp-admin/upload.php3.26 ▲0.0337.63 ▼2.59
FikraTicker /wp-admin/options-general.php?page=fikraticker/news.php3.2337.59

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for FikraTicker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲17914.04 ▼0.245.65 ▲3.8945.27 ▲2.15
Dashboard /wp-admin2,225 ▲255.91 ▼0.10108.20 ▲5.2240.27 ▼5.57
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0237.41 ▼4.3533.33 ▼3.83
Add New Post /wp-admin/post-new.php1,553 ▲823.06 ▼0.17656.02 ▼43.1455.20 ▼8.00
Media Library /wp-admin/upload.php1,404 ▲74.21 ▲0.02106.81 ▼35.9745.57 ▼11.60
FikraTicker /wp-admin/options-general.php?page=fikraticker/news.php9742.2323.8226.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fikraticker/news.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fikraticker/index.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (fikraticker), #2 (Admin Panel)
You can take inspiration from this readme.txt

fikraticker/news.php 92% from 13 tests

The principal PHP file in "FikraTicker" v. 0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("fikraticker.php" instead of "news.php")

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
Everything looks great! No dangerous files found in this plugin735 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript377231372
PHP32424363

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png5.61KB3.34KB▼ 40.53%
screenshot-2.png37.29KB12.15KB▼ 67.42%