90% america-magazine-the-word

Code Review | The Word: Catholic Scripture Reflections

WordPress plugin The Word: Catholic Scripture Reflections scored 90% from 54 tests.

About plugin

  • Plugin page: america-magazine-...
  • Plugin version: 2.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.4.1
  • WordPress version: 5.8.1
  • First release: Aug 31, 2018
  • Latest release: May 12, 2020
  • Number of updates: 43
  • Update frequency: every 14.4 days
  • Top authors: americamedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,055 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼139.38ms] Passed 4 tests

Server-side resources used by The Word: Catholic Scripture Reflections
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1537.53 ▲14.36
Dashboard /wp-admin3.09 ▲0.0357.24 ▲10.41
Posts /wp-admin/edit.php3.14 ▲0.0342.18 ▼3.77
Add New Post /wp-admin/post-new.php5.45 ▲0.0190.99 ▼567.35
Media Library /wp-admin/upload.php3.03 ▲0.0331.64 ▲3.21

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by The Word: Catholic Scripture Reflections
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10916.03 ▲0.0812.96 ▲2.7243.36 ▼4.66
Dashboard /wp-admin2,970 ▲366.09 ▲0.16137.17 ▼9.44104.94 ▼11.10
Posts /wp-admin/edit.php2,739 ▼02.85 ▲0.1467.10 ▲1.2584.09 ▼1.21
Add New Post /wp-admin/post-new.php1,498 ▼619.00 ▲0.46405.78 ▲11.29101.37 ▼12.55
Media Library /wp-admin/upload.php1,807 ▼35.04 ▲0.02145.12 ▲0.65114.50 ▲5.02

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_america-magazine-the-word-widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: scripture, sunday readings, liturgical calendar, catholic, liturgy...

america-magazine-the-word/america-magazine-the-word.php 92% from 13 tests

The principal PHP file in "The Word: Catholic Scripture Reflections" v. 2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 266 characters long)

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 plugin212 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
source/images/am-sun_c.png56.15KB31.66KB▼ 43.61%
source/images/PoweredbyAmericaMedia_c.png14.33KB8.37KB▼ 41.56%