78% display-omeka-metadata

Code Review | Display Omeka Feed in Wordpress

WordPress plugin Display Omeka Feed in Wordpress scored78%from 54 tests.

About plugin

  • Plugin page: display-omeka-met...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: Oct 25, 2012
  • Latest release: Oct 25, 2012
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: AaronKnoll (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,011 total downloads

Benchmarks

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
Installer ran successfully

Server metrics [RAM: ▼0.62MB] [CPU: ▼20.25ms] Passed 4 tests

An overview of server-side resources used by Display Omeka Feed in Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.34 ▼1.17
Dashboard /wp-admin3.37 ▲0.0644.61 ▼9.03
Posts /wp-admin/edit.php3.48 ▲0.1243.41 ▼4.77
Add New Post /wp-admin/post-new.php3.21 ▼2.6734.90 ▼66.01
Media Library /wp-admin/upload.php3.29 ▲0.0635.08 ▲2.10

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 22 new options
New WordPress options
omekafeedpull_Languagetoggle
widget_recent-comments
omekafeedpull_Publishertoggle
widget_recent-posts
omekafeedpull_Titletoggle
omekafeedpull_Rightstoggle
theysaidso_admin_options
omekafeedpull_Creatortoggle
widget_theysaidso_widget
omekafeedpull_omekaroot
...

Browser metrics Passed 4 tests

Checking browser requirements for Display Omeka Feed in Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.17 ▼1.201.72 ▼0.0343.80 ▼5.69
Dashboard /wp-admin2,221 ▲335.88 ▲1.01100.47 ▼4.8370.27 ▲27.78
Posts /wp-admin/edit.php2,107 ▲182.02 ▲0.0234.53 ▼6.4332.91 ▼4.35
Add New Post /wp-admin/post-new.php1,536 ▲323.27 ▲0.07776.65 ▲154.7659.77 ▲10.10
Media Library /wp-admin/upload.php1,403 ▲184.14 ▼0.0797.11 ▼5.2270.86 ▲29.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/display-omeka-metadata/views/eachbox.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: unititle in wp-content/plugins/display-omeka-metadata/views/eachbox.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-omeka-metadata/create_admin_page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/display-omeka-metadata/views/configform.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-omeka-metadata/create_admin_page.php:4
    • > PHP Notice
      Undefined variable: unipar in wp-content/plugins/display-omeka-metadata/views/eachbox.php on line 2

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tested up to: Version not formatted correctly
You can look at the official readme.txt

display-omeka-metadata/omekafeed.php 92% from 13 tests

This is the main PHP file of "Display Omeka Feed in Wordpress" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("display-omeka-metadata.php" instead of "omekafeed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected314 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP456101312
CSS1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity13.50
▷ Minimum class complexity10.00
▷ Maximum class complexity17.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods750.00%
▷ Protected methods00.00%
▷ Private methods750.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/engine2.png0.50KB0.39KB▼ 21.41%