84% responsive-news-announcements

Code Review | Responsive News & Announcements

WordPress plugin Responsive News & Announcements scored84%from 54 tests.

About plugin

  • Plugin page: responsive-news-a...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2013
  • Latest release: Feb 5, 2013
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: re_enter_rupok (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /7,980 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
This plugin's installer ran successfully

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

Server-side resources used by Responsive News & Announcements
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.31 ▲0.74
Dashboard /wp-admin3.36 ▲0.0559.17 ▲0.61
Posts /wp-admin/edit.php3.41 ▲0.0557.59 ▼2.74
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.65 ▼3.59
Media Library /wp-admin/upload.php3.28 ▲0.0538.98 ▼0.77
Announcements /wp-admin/edit.php?post_type=announcements3.3239.95
Add New /wp-admin/post-new.php?post_type=announcements3.4055.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive News & Announcements
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.46 ▼0.898.62 ▲6.9244.00 ▲3.87
Dashboard /wp-admin2,219 ▲455.55 ▼0.0188.19 ▼26.4637.77 ▼5.36
Posts /wp-admin/edit.php2,133 ▲302.04 ▲0.0750.07 ▲0.3540.19 ▼0.53
Add New Post /wp-admin/post-new.php1,561 ▲3223.18 ▲0.15700.38 ▲70.9150.90 ▲3.63
Media Library /wp-admin/upload.php1,427 ▲244.17 ▼0.10106.67 ▲4.9950.72 ▲5.01
Announcements /wp-admin/edit.php?post_type=announcements1,0911.9631.3331.79
Add New /wp-admin/post-new.php?post_type=announcements2,2427.67179.2968.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
Good news, no errors were detected

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/responsive-news-announcements/annoucements.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: announcement, breaking news, announcements, news, ticker

responsive-news-announcements/annoucements.php 85% from 13 tests

The entry point to "Responsive News & Announcements" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("responsive-news-announcements.php" instead of "annoucements.php")
  • Description: The description should be shorter than 140 characters (currently 156 characters long)

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
Good job! No executable or dangerous file extensions detected671 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS22556276
JavaScript34730255
PHP12918140

PHP code Passed 2 tests

An overview 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.44
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.31MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/ui-lightness/images/ui-icons_ef8c08_256x240.png4.27KB4.11KB▼ 3.78%
css/ui-lightness/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
screenshot-1.png103.56KB31.55KB▼ 69.53%
css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.13KB0.18KB0.00%
css/ui-lightness/images/ui-icons_ffd27a_256x240.png4.27KB4.11KB▼ 3.78%