83% feedzilla-news

Code Review | CW World News

WordPress plugin CW World News scored83%from 54 tests.

About plugin

  • Plugin page: feedzilla-news
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Feb 7, 2014
  • Number of updates: 26
  • Update frequency: every 1.2 days
  • Top authors: wzedi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,018 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.10ms] Passed 4 tests

Server-side resources used by CW World News
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1139.03 ▼1.49
Dashboard /wp-admin3.44 ▲0.1146.98 ▼8.11
Posts /wp-admin/edit.php3.49 ▲0.1149.78 ▼1.51
Add New Post /wp-admin/post-new.php6.02 ▲0.1185.61 ▼9.07
Media Library /wp-admin/upload.php3.37 ▲0.1135.92 ▼1.72
CW World News /wp-admin/options-general.php?page=cw-feedzilla3.3334.45

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

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

Browser metrics Passed 4 tests

CW World News: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲14413.72 ▼1.034.95 ▲3.1839.80 ▼2.15
Dashboard /wp-admin2,207 ▲315.80 ▲0.8597.74 ▼43.9538.67 ▼36.75
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0238.78 ▼21.2835.58 ▲1.43
Add New Post /wp-admin/post-new.php1,517 ▼217.46 ▼6.06660.29 ▼27.8647.18 ▼12.26
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0095.73 ▼17.7640.49 ▼6.84
CW World News /wp-admin/options-general.php?page=cw-feedzilla9902.0724.7728.95

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

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

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× 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/feedzilla-news/cw-feedzilla.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

feedzilla-news/cw-feedzilla.php 92% from 13 tests

The entry point to "CW World News" version 2.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("feedzilla-news.php" instead of "cw-feedzilla.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
Good job! No executable or dangerous file extensions detected1,018 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15633641
JavaScript1232239
CSS1200138

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.51MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) img/addthis_button.png1.64KB0.00KB▼ 100.00%
(invalid) img/addthis_default.png3.87KB0.00KB▼ 100.00%
img/cadreworks-logo.png489.77KB262.18KB▼ 46.47%
img/addthis_large.png9.10KB1.06KB▼ 88.37%
img/feedzilla-logo.png6.19KB3.42KB▼ 44.67%